setTimeout("orphanframe()",750);

function orphanframe(){
passpage = document.URL;
query = '' + passpage;
if ((top.location == self.location) && (query.indexOf('?',0)==-1) && (document.all || document.layers || document.getElementById))
top.location.href="orphan.asp?" + passpage;}

function NoFrameNavigate(locationURL){
passpage2 = document.URL;

if ((passpage2.indexOf('?',0)!=-1) && (top.location == self.location)) {
self.location.href=(locationURL + '?');}
else{
self.location.href = locationURL}

}