var lclickpage ="";
function selectlilink( path , elementid, defid ){
	

	if ( lclickpage != "" ){
		var prep = document.getElementById( lclickpage );
		prep.className= null;
	}else{
		var prep = document.getElementById( defid );
		prep.className= null;
		
	}
	var spage = document.getElementById( elementid );
	spage.className= "bluearrow";
	lclickpage= elementid;
	
	
	selectlilinkframe.location.href = path;
			
}
function popprint(theURL){
	 theWindow = window.open(theURL,"print","");
    theWindow.focus();
}


function openFixWindows( theURL, nn, features ){
	features=  features + ",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no";
    theWindow = window.open(theURL,nn,features);
    theWindow.focus();
}


function openWindows( theURL, nn, features ){
	features=  features + ",toolbar=no,location=no,status=no,menubar=no,resizable=no";
    theWindow = window.open(theURL,nn,features);
    theWindow.focus();
}


function getQueryVar(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
	return "none";
}

function openInframe(pnum){
	window.location="/index2.html?page=frame&pageindex="+pnum;
}
