var strTitle;
var strFilename;
var strDocType;
var NewWindowName;
var NewWindow1;
Sheight = 580;
Swidth = 870;
//Sheight = 500;
//Swidth = 750;
var xPos = 0; var yPos = 0;

// check screen object exists - if so then centre new window and set the margin
if (screen) {
	xPos = (screen.width-Swidth)/2;
	yPos = (screen.availHeight-Sheight)/2
	// css margin: is set through expression for IE in IE.css (for wide screen >1024)
	var margin =  (screen.width - 875)/2;	
	}
// screen X,Y for nav and left,top for IE   
var screenPos='screenX='+xPos+',screenY='+yPos+',left='+xPos+',top='+yPos;
var strFilename;
var bCookieFlag = false;
var strRemoteAddr = "9999";
/*
var bJavaFlag = false;
var bJavaAppFlag = false;
var intCount = 0;
//var bXtra = false;
var bXtra = true;
//var strPageName = "";
*/


// test cookies
document.cookie = "test=" + strRemoteAddr;
// now read cookie
strRemoteAddr = readCookie("test");
if (strRemoteAddr != "9999") {
	alert("Cookies may need to be enabled for the page to display correctly");
	bCookieFlag = false;
	}
else {
	bCookieFlag = true;
	} 
	
/*	
// now check for java - if no java or no cookie, do not set applet
bJavaFlag = navigator.javaEnabled();
// set intCount to 0 if empty cookie
if (readCookie("keepcount")==null || readCookie("keepcount")===null) {
	document.cookie = "keepcount=" + 0;
	}
*/

// Browser Detect  v2.1.6
// documentation: http://www.dithered.com/javascript/browser_detect/index.html
// license: http://creativecommons.org/licenses/by/1.0/
// code by Chris Nott (chris[at]dithered[dot]com)


function SetName(pfn) {
	//alert(pfn);
	//pfn = parent.opener.document.frmRespond1.filename.value;
	createCookie("fname",pfn)
	//alert(readCookie("fname"));
	//if (readCookie("fname"))
	//	{
		
	//	}
	
	}
/*
//function ReSetName() {
	//alert(pfn);
	//pfn = parent.opener.document.frmRespond1.filename.value;
	//createCookie("fname","reset")
	//alert(readCookie("fname"));
	//if (readCookie("fname"))
	//	{
		
	//	}
	
	//}	
	
function BrowserDetect() {
   var ua = navigator.userAgent.toLowerCase(); 

   // browser engine name
   this.isGecko       = (ua.indexOf('gecko') != -1 && ua.indexOf('safari') == -1);
   this.isAppleWebKit = (ua.indexOf('applewebkit') != -1);

   // browser name
   this.isKonqueror   = (ua.indexOf('konqueror') != -1); 
   this.isSafari      = (ua.indexOf('safari') != - 1);
   this.isOmniweb     = (ua.indexOf('omniweb') != - 1);
   this.isOpera       = (ua.indexOf('opera') != -1); 
   this.isIcab        = (ua.indexOf('icab') != -1); 
   this.isAol         = (ua.indexOf('aol') != -1); 
   this.isIE          = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1) ); 
   this.isMozilla     = (this.isGecko && ua.indexOf('gecko/') + 14 == ua.length);
   this.isFirefox     = (ua.indexOf('firefox/') != -1 || ua.indexOf('firebird/') != -1);
   this.isNS          = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && !this.isOpera && !this.isSafari && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) );
   
   // spoofing and compatible browsers
   this.isIECompatible = ( (ua.indexOf('msie') != -1) && !this.isIE);
   this.isNSCompatible = ( (ua.indexOf('mozilla') != -1) && !this.isNS && !this.isMozilla);
   
   // rendering engine versions
   this.geckoVersion = ( (this.isGecko) ? ua.substring( (ua.lastIndexOf('gecko/') + 6), (ua.lastIndexOf('gecko/') + 14) ) : -1 );
   this.equivalentMozilla = ( (this.isGecko) ? parseFloat( ua.substring( ua.indexOf('rv:') + 3 ) ) : -1 );
   this.appleWebKitVersion = ( (this.isAppleWebKit) ? parseFloat( ua.substring( ua.indexOf('applewebkit/') + 12) ) : -1 );
   
   // browser version
   this.versionMinor = parseFloat(navigator.appVersion); 
   
   // correct version number
   if (this.isGecko && !this.isMozilla) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('/', ua.indexOf('gecko/') + 6) + 1 ) );
   }
   else if (this.isMozilla) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('rv:') + 3 ) );
   }
   else if (this.isIE && this.versionMinor >= 4) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) );
   }
   else if (this.isKonqueror) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('konqueror/') + 10 ) );
   }
   else if (this.isSafari) {
      this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('safari/') + 7 ) );
   }
   else if (this.isOmniweb) {
      this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('omniweb/') + 8 ) );
   }
   else if (this.isOpera) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera') + 6 ) );
   }
   else if (this.isIcab) {
      this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab') + 5 ) );
   }
   
   this.versionMajor = parseInt(this.versionMinor); 
   
   // dom support
   this.isDOM1 = (document.getElementById);
   this.isDOM2Event = (document.addEventListener && document.removeEventListener);
   
   // css compatibility mode
   this.mode = document.compatMode ? document.compatMode : 'BackCompat';

   // platform
   this.isWin    = (ua.indexOf('win') != -1);
   this.isWin32  = (this.isWin && ( ua.indexOf('95') != -1 || ua.indexOf('98') != -1 || ua.indexOf('nt') != -1 || ua.indexOf('win32') != -1 || ua.indexOf('32bit') != -1 || ua.indexOf('xp') != -1) );
   this.isMac    = (ua.indexOf('mac') != -1);
   this.isUnix   = (ua.indexOf('unix') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1)
   this.isLinux  = (ua.indexOf('linux') != -1);
   
   // specific browser shortcuts
   this.isNS4x = (this.isNS && this.versionMajor == 4);
   this.isNS40x = (this.isNS4x && this.versionMinor < 4.5);
   this.isNS47x = (this.isNS4x && this.versionMinor >= 4.7);
   this.isNS4up = (this.isNS && this.versionMinor >= 4);
   this.isNS6x = (this.isNS && this.versionMajor == 6);
   this.isNS6up = (this.isNS && this.versionMajor >= 6);
   this.isNS7x = (this.isNS && this.versionMajor == 7);
   this.isNS7up = (this.isNS && this.versionMajor >= 7);
   
   this.isIE4x = (this.isIE && this.versionMajor == 4);
   this.isIE4up = (this.isIE && this.versionMajor >= 4);
   this.isIE5x = (this.isIE && this.versionMajor == 5);
   this.isIE55 = (this.isIE && this.versionMinor == 5.5);
   this.isIE5up = (this.isIE && this.versionMajor >= 5);
   this.isIE6x = (this.isIE && this.versionMajor == 6);
   this.isIE6up = (this.isIE && this.versionMajor >= 6);
   
   this.isIE4xMac = (this.isIE4x && this.isMac);
}
*/

function makeVisInvis(value)
{
if (bCookieFlag == true && bJavaFlag == true) {
	if (document.layers && document.layers["layoutLogic"] != null) {
		document.layers["layoutLogic"].visibility = value;
		}
	else if (document.all) {
		document.all["layoutLogic"].style.visibility = value;
		}
	}
}

/*
function getIT(ITadd)
{
bJavaAppFlag = true;
strRemoteAddr =	readCookie("remoteaddr");
if ((strRemoteAddr === null || strRemoteAddr == null)) {
	window.strRemoteAddr = ITadd;
	//alert("Address: " + strRemoteAddr);
	//document.cookie = "remoteaddr=" + strRemoteAddr;
	writeCookie('remoteaddr', strRemoteAddr,7)
	}

}
//set applet if java and if the address is not returned
if (bJavaFlag) {
	strRemoteAddr =	readCookie("remoteaddr");
	if ((strRemoteAddr === null || strRemoteAddr == null)) {
		// create if Java
		document.writeln('<div style="visible:hidden">');
		document.writeln('<applet code="MyAddress.class" mayscript="true" width="1" height="1">');
		document.writeln('<param name="CALL" value="getIT"/>');
		document.writeln('</applet>');			
		document.writeln('</div>');
		}
	}
	
// Set address and local flag
strRemoteAddr =	readCookie("remoteaddr");
if (!(strRemoteAddr === null || strRemoteAddr == null)) {
	strIndex = strRemoteAddr.lastIndexOf('.')
	if (strIndex !=-1) {
		//strRemoteAddr=strRemoteAddr.substring(0,strIndex);
		strRemoteAddr=strRemoteAddr.substring(0,strIndex);
		//first1 = first.substring(0, 2)
		//If Not((Left(strRemoteAddr,5) = "10.0." or Left(strRemoteAddr,8) = "192.168." or Left(strRemoteAddr,7) = "172.16.")) Then

		}
	if (strRemoteAddr.substring(0,5)!="10.0." && strRemoteAddr.substring(0,8)!="192.168." && strRemoteAddr.substring(0,7)!="172.16." && strRemoteAddr !="") {		
	//if (strRemoteAddr!="10.0.15" && strRemoteAddr!="192.168.50" && strRemoteAddr !="") {
		bXtra = true;
		}
	}
				
function Message(strPageName)
{
	strFilename = strPageName;
	//strFilename = 'previewpageoriginal.html';
//alert('Address: ' + strFilename);
	//strPageName = "'" + strPageName + "'";
    //<!--Note that the Learning Centre will be closed from Mon 17 July to Mon 24 July inclusive.<br/>-->  				
	strMessage = "<div style='font-weight:bold'>When Can I Start?</div>Phone us today -<br/>01772 225321<br/>weekdays 9:00-5:00 and you could start tomorrow.<br/><br/>";
	//strMessage = strMessage + "<div style='font-weight:bold'>Course Fee</div>Start the GCSE Maths (flexi) course by the end of July 2007 and pay £160 - <span style='font-weight:bold'>before</span> the fee increases to £245 in August.<br/><br/>";
	strMessage = strMessage + "Do not delay - the GCSE Maths (flexi) course will soon be full!<br/><br/>"
	strMessage = strMessage + "<div style='font-weight:bold'>GCSE Maths (retake)</div>Do you already have a grade D and need a higher grade. Our <a href='retakepage.html'>GCSE Maths (retake)</a> course may suit you. The fee is £178. It operates flexibly. You can start between now and early September and resit in November. If you start after September you can resit in June 08.<br/><br/>";
	// strMessage = strMessage + "<a href='mailto:pbroadfoot@preston.ac.uk?subject=Individual Module'>Individual Module</a><br/><br/>";
	strRemoteAddr =	readCookie("remoteaddr");
	if (!(strRemoteAddr === null || strRemoteAddr == null)) {
		makeVisInvis('visible');	 
		//}
	
		strIndex = strRemoteAddr.lastIndexOf('.')
		if (strIndex !=-1) {
			strRemoteAddr=strRemoteAddr.substring(0,strIndex);
			}	
		if (strRemoteAddr.substring(0,5)!="10.0." && strRemoteAddr.substring(0,8)!="192.168." && strRemoteAddr.substring(0,7)!="172.16." && strRemoteAddr !="") {
			document.write(strMessage);
			}
		//document.write(strRemoteAddr.substring(0,7));	
		}
	
 	var version = parseInt(navigator.appVersion);
  	intTimeDelay = 100;
  	// replace is supported
  	strRemoteAddr = readCookie("remoteaddr");
  	intCount = parseInt(readCookie("keepcount"));
	//alert(intCount);
  	//if (intCount>=6) {
	//	alert(intCount);
	//	}
	intTimeDelay = intTimeDelay*(1 + intCount*intCount)
	intCount=intCount+1;
	document.cookie = "keepcount=" + intCount;
	//alert(intTimeDelay);
  	if ((strRemoteAddr == "9999" || strRemoteAddr == "" || strRemoteAddr == null || strRemoteAddr === null)) {
		strRemoteAddr = "";
		}
		
  //alert('Address: ' + strRemoteAddr);
  if (bJavaFlag==true) {
  	if (version>=4 || window.location.replace) {
		if (intCount<=10)  {
  			if (strRemoteAddr == "" ) {
  				//setTimeout("window.location.replace('previewpageoriginal.html')",intTimeDelay);
				setTimeout("timedRedirect()", intTimeDelay);
				}
			else {
				// reset cos success
				document.cookie = "keepcount=" + 0;
				}
			}
  		}
	}
}

function timedRedirect()
{
    window.location.replace(strFilename);
}
	
*/
	 
function closeAll()
{
    if (NewWindow1 && NewWindow1.open && !NewWindow1.closed) NewWindow1.close();
}

function writeCookie(name, value, days){
    if(days){
	        (time = new Date()).setTime(new Date().getTime()+days*24*60*60*1000);
			var exp = '; expires='+time.toGMTString();
			}
	else{
	        var exp='';		    
			}
	document.cookie=name+"="+value+exp+"; path=/";
}

function readCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function checklocation() {
if (top.location==self.location) {
	NewWindowOne('Ratio and Proportion Study Booklet','ratioandproportion/ratioproportion1.html','htmlframesetcoll'); 
	}
}

function checklocationTimeSeries() {
if (top.location==self.location) {
	NewWindowOne('Time Series Graphs Study Booklet','timeseriesgraphs/time-seriesgraphs1.html','htmlframesetcoll'); 
	}
}

/*
function AdobePlugs1()
{
/******************************************************* 
ACROBAT DETECT All code by Ryan Parman, unless otherwise noted. 
(c) 1997-2003, Ryan Parman http://www.skyzyx.com 
Distributed according to SkyGPL 2.1, http://www.skyzyx.com/license/ 
*******************************************************/ 

/*
var acrobat=new Object();
// Set some base values
acrobat.installed=false;
acrobat.version='0.0';
if (navigator.plugins && navigator.plugins.length)
      {
      for (x=0; x<navigator.plugins.length; x++)
            {
            if (navigator.plugins[x].description.indexOf('Adobe Acrobat') != -1)
                  {
                  acrobat.version=parseFloat(navigator.plugins[x].description.split('Version ')[1]);
                  if (acrobat.version.toString().length == 1) acrobat.version+='.0';
                  acrobat.installed=true;
				  }
		    else if (navigator.mimeTypes && navigator.mimeTypes.length)
				  {
				  test = navigator.mimeTypes['application/pdf'];
				  if (test && test.enabledPlugin) acrobat.installed=true;
                  break;
                  }
            }
      }
else if (window.ActiveXObject)
      {
      for (x=2; x<10; x++)
            {
            try
                  {
                  oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");
                  if (oAcro)
                        {
                        acrobat.installed=true;
                        acrobat.version=x+'.0';
                        }
                  }
            catch(e) {}
            }
            try
                  {
                  oAcro4=new ActiveXObject('PDF.PdfCtrl.1');
                  if (oAcro4)
                  		{
                  		acrobat.installed=true;
                  		acrobat.version='4.0';
		                }
            	  }
            catch(e) {}
			
			try
				{
				oAcro7=new ActiveXObject('AcroPDF.PDF.1');
				if (oAcro7)
					{
					acrobat.installed=true;
					acrobat.version='7.0';
					}
				}
			catch(e) {}			
      }
acrobat.ver4=(acrobat.installed && parseInt(acrobat.version) >= 4) ? true:false;
acrobat.ver5=(acrobat.installed && parseInt(acrobat.version) >= 5) ? true:false;
acrobat.ver6=(acrobat.installed && parseInt(acrobat.version) >= 6) ? true:false;
acrobat.ver7=(acrobat.installed && parseInt(acrobat.version) >= 7) ? true:false;
acrobat.ver8=(acrobat.installed && parseInt(acrobat.version) >= 8) ? true:false;
acrobat.ver9=(acrobat.installed && parseInt(acrobat.version) >= 9) ? true:false;
 
if (acrobat.installed) 
    {
    window.alert("Acrobat is installed!");
    }
else
    {
    window.alert("Sorry, it isn't installed.");
    }
}
*/


function AdobePlugs()
{
// To check if Plug-in exists before opening new win

/******************************************************* 
ACROBAT DETECT All code by Ryan Parman, unless otherwise noted. 
(c) 1997-2003, Ryan Parman http://www.skyzyx.com 
Distributed according to SkyGPL 2.1, http://www.skyzyx.com/license/ 
*******************************************************/

var acrobat=new Object();
acrobat.installed=false;
acrobat.version='0.0';


//if (navigator.plugins && navigator.plugins.length)
//{
//for ( var x = 0, l = navigator.plugins.length; x < l; ++x )
//{ 
//alert("Description: " + navigator.plugins[x].description);
//if ((navigator.plugins[x].description.indexOf('Adobe Acrobat') != -1) || (navigator.plugins[x].description.indexOf('Adobe PDF Plug-in for Firefox and Netscape')) != -1)
//if ((navigator.plugins[x].description.indexOf('Adobe Acrobat') != -1) || (navigator.plugins[x].description.indexOf('Acrobat Portable Document Format')) != -1)
//if (navigator.plugins[x].description.indexOf('Adobe Acrobat') != -1)
//if (navigator.plugins[x].description.indexOf('Adobe PDF Plug-in for Firefox and Netscape') != -1)
//if (navigator.plugins[x].description.indexOf('Acrobat Portable Document Format') != -1)
//{	

if (navigator.plugins && navigator.plugins.length)
      {
      for (x=0; x<navigator.plugins.length; x++)
            {
            if (navigator.plugins[x].description.indexOf('Adobe Acrobat') != -1)
                  {
                  acrobat.version=parseFloat(navigator.plugins[x].description.split('Version ')[1]);
                  if (acrobat.version.toString().length == 1) acrobat.version+='.0';
                  acrobat.installed=true;
				  }
			// check Adobe mime - to make it work with Mozilla - P Broadfoot Jan 2008	  
		    else if (navigator.mimeTypes && navigator.mimeTypes.length)
				  {
				  test = navigator.mimeTypes['application/pdf'];
				  if (test && test.enabledPlugin) acrobat.installed=true;
                  break;
                  }
            }
      }
else if (window.ActiveXObject)
      {
      for (x=2; x<10; x++)
            {
            try
                  {
                  oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");
                  if (oAcro)
                        {
                        acrobat.installed=true;
                        acrobat.version=x+'.0';
                        }
                  }
            catch(e) {}
            }
            try
                  {
                  oAcro4=new ActiveXObject('PDF.PdfCtrl.1');
                  if (oAcro4)
                  		{
                  		acrobat.installed=true;
                  		acrobat.version='4.0';
		                }
            	  }
            catch(e) {}
			
			try
				{
				oAcro7=new ActiveXObject('AcroPDF.PDF.1');
				if (oAcro7)
					{
					acrobat.installed=true;
					acrobat.version='7.0';
					}
				}
			catch(e) {}
			
			try
				{
				oAcro8=new ActiveXObject('AcroPDF.PDF.1');
				if (oAcro8)
					{
					acrobat.installed=true;
					acrobat.version='8.0';
					}
				}
			catch(e) {}
									
      }

if (!acrobat.installed)
	{
	alert("The Adobe Reader add-on/plug-in is not installed in this browser. You will need to install the plug-in to view a PDF file in your browser's window.");
	return false;
	}
return acrobat.installed;	
}


function NewWindowOne(strTitle,strFilename,strDocType)
{
   if (window.NewWindow1) 
  {
    if (false == NewWindow1.closed) 
   {
	  if (NewWindowName==strTitle)
	 {
	  	//alert('The document you requested was already open in its own window behind this window. In future you may prefer to switch to an already open document rather than clicking the link to download.');
		NewWindow1.focus();
		return true
	 }
	  else
	 {
	 	NewWindow1.close ();
	 }
   }
    else
   {
    // alert('Window already closed!');
   }
  }
 
 // Prepare for window open 
 document.frmRespond1.filename.value=strFilename;
 document.frmRespond1.title.value=strTitle;
 document.frmRespond1.doctype.value=strDocType;
 
 // Added modificatiob 8 Jan 08 (C) P Broadfoot
 // Use	 <comment> entity to test for IE and if not IE, use frameset for PDF
 // else use <object> to contain pdf
 // example if (IEcomment==true)
 // Alternative to this test for IE, use browser sniffing
 // but not necessar yet.
 // example if (browser.isIE)
  
 //use a relative path /gcsemathsflexi/pdf/ to CreateFrameset
 // the / directs the new path to start at the domain root
 
 
 //var browser = new BrowserDetect();
 //alert("Is opera: " + browser.isOpera);
 
 if (strDocType=="pdf" && IEcomment) {
 	if (AdobePlugs()==false) {
		return;
		}		
 	// set filename in cookie
	SetName(strFilename);
	//alert (strFilename);
 	frmRespond1.print.value="";  // No MainPrint.html
 	NewWindow1 = window.open("/FramesetPDFobject.html","WindowTarget1",
 	"resizable=yes,height="+Sheight+",width="+Swidth+","+screenPos+",status=yes,toolbar=no,menubar=no,location=no"); 
 	//NewWindow1 = window.open("/AdobePrintProblem/AdobeTest.html","WindowTarget1",
 	//"resizable=yes,height="+Sheight+",width="+Swidth+","+screenPos+",status=no,toolbar=no,menubar=no,location=no");
	// reset filename in cookie
	// ReSetName();
 	}
	
 /*	 */
 //if (strDocType=="pdf" && AdobePlugs()==true && (browser.isOpera)) {
 if (strDocType=="pdf" && !IEcomment) {
  	if (AdobePlugs()==false) {
		return;
		} 	
 	NewWindow1 = window.open("/FramesetPDF.html","WindowTarget1",
 	"resizable=yes,height="+Sheight+",width="+Swidth+","+screenPos+",status=no,toolbar=no,menubar=no,location=no");
 	}

/* The rest of code disabled cos not needed in index.asp
temp re-enable for test with exampapers.asp */	
 if (strDocType=="htmlframeset") {
 	// first get address - mods 11 Apr 2006 Canillas
 	// Check PCISP
	//if (readCookie("remoteaddr")=="213.94.9.63") {
	strRemoteAddr =	readCookie("remoteaddr");
	//strRemoteAddr =	"195.194.152.3"
	strIndex = strRemoteAddr.lastIndexOf('.')
	//alert(strIndex);
	if (strIndex !=-1) {
		strRemoteAddr=strRemoteAddr.substring(0,strIndex);
		//alert(strRemoteAddr);
		}
 	//if (strRemoteAddr=="195.194.152") {
	if (strRemoteAddr == "10.0.15" || strRemoteAddr == "192.168.50") {
	
	//if (strRemoteAddr=="195.137.81") {
	
 		NewWindow1 = window.open("/FramesetHTML.html","WindowTarget1",
 		"resizable=yes,height="+Sheight+",width="+Swidth+","+screenPos+",scrollbars=yes,status=no,toolbar=no,menubar=no,location=no"); 
 		}
 	// Not PC so no frame	
 	else {
 		NewWindow1 = window.open("http://www.edu-sol.co.uk" + strFilename,"pdf",
 		"resizable=yes,height="+Sheight+",width="+Swidth+","+screenPos+",scrollbars=yes,status=no,toolbar=no,menubar=no,location=no"); 
 		}
	}	
 if (strDocType=="htmlframesetcoll") {
 	NewWindow1 = window.open("/FramesetHTML.html","WindowTarget1",
 	"resizable=yes,height="+Sheight+",width="+Swidth+","+screenPos+",scrollbars=yes,status=no,toolbar=yes,menubar=no,location=yes"); 
 	}	
 if (strDocType=="html") {
 	NewWindow1 = window.open("http://www.edu-sol.co.uk" + strFilename,"pdf",
 	"resizable=yes,height="+Sheight+",width="+Swidth+","+screenPos+",scrollbars=yes,status=no,toolbar=no,menubar=no,location=no"); 
 	} 
 //NewWindow1 = window.open("http://webct.preston.ac.uk/gcsemathsflexi/pdf/CreateFramesetClientside.html","WindowTarget1",
 //"resizable=yes,height="+Sheight+",width="+Swidth+","+screenPos+",status=yes,toolbar=no,menubar=no,location=no");
 //NewWindow1.focus()
 NewWindowName=strTitle;
 }


