same origin
different origin

newwin
checkwin
store
checkdoc