

function urlSubmit(url,value) {
	//if (value != "") {
    	self.location=url + value;
    //} 
}



function footerPop(app) 
{ 
	var winFeatures = 'width=450,height=500,scrollbars=yes';
	win = open(app,'preview',winFeatures); 
	if (top.BV == 2 && (navigator.appVersion.indexOf('mac')>= 0)) {win = open(app,'Info',winFeatures)} 
	if (top.BV == 2 && BN == 'n') {win.opener = top.self;} 
}

function footerPopUserAgrement(app) 
{
	footerPop('index.cfm?fuseaction=Docs.ViewUserAgrement');
}

function footerPopPrivacy(app) 
{
	footerPop('index.cfm?fuseaction=Docs.ViewPrivacyPolicy');
}

function sample() 
{ 
	temp_w = screen.width;
	temp_h = screen.height-10;
	//var winFeatures = 'scrollbars=yes,resizable,type=fullWindow,fullscreen';
	
	var winFeatures = 'width=' + temp_w + ',height=' + temp_h + ',screenX=0,left=0,scrollbars=yes,resizable';
	
	win = open('promo/SciAm_Digital_Sample.pdf','popup',winFeatures); 
	if (top.BV == 2 && (navigator.appVersion.indexOf('mac')>= 0)) {win = open('promo/SciAm_Digital_Sample.pdf','poup',winFeatures)} 
	if (top.BV == 2 && BN == 'n') {win.opener = top.self;}
}

function survey() {
var site_url = this.location.href;
var url_arry = site_url.split('=');
var url = url_arry[0];
var url = url + "=Products.ViewSampleIssueSurveyPopUp";

/* */
this.focus();
var winFeatures = 'width=450,height=357,scrollbars=yes,resizable,screenX=400,screenY=200,top=200,left=400';
// ViewSampleIssueSurveyPopUp
win = open(url,'survey',winFeatures);
this.parent.winpointer = win; 
if (top.BV == 2 && (navigator.appVersion.indexOf('mac')>= 0)) {win = open(url,'survey',winFeatures)} 
if (top.BV == 2 && BN == 'n') {win.opener = top.self;}
this.focus(); 
	
}

function surveyClose() 
{ 
	/* Defunct
	var winFeatures = 'width=100,height=100,scrollbars=yes,resizable';
	win = open('','survey',winFeatures);
	win.close();
	*/
}