
/*-----------------------------------*/
function loadXMLDoc(dname){
	if (window.XMLHttpRequest){
		xhttp=new XMLHttpRequest();
  } else {
		xhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
	xhttp.open("GET",dname,false);
	xhttp.send("");
	return xhttp.responseXML;
}
/*-----------------------------------*/

/*-----------------------------------*/
function displayResult(xmlDoc, xslDoc, divName){
	xml=loadXMLDoc(xmlDoc);
	xsl=loadXMLDoc(xslDoc);
	
	// code for IE
	if (window.ActiveXObject){
		ex=xml.transformNode(xsl);
		document.getElementById(divName).innerHTML=ex;
  }
	
	// code for Mozilla, Firefox, Opera, etc.
	else if (document.implementation && document.implementation.createDocument){
		xsltProcessor=new XSLTProcessor();
		xsltProcessor.importStylesheet(xsl);
		resultDocument = xsltProcessor.transformToFragment(xml,document);
		document.getElementById(divName).appendChild(resultDocument);
  }
}
/*-----------------------------------*/


/*-----------------------------------------------*/
function SubmitGoogleForm(){ 
  if (document.forms[0].__VIEWSTATE) {
    document.forms[0].__VIEWSTATE.value='';
  }
  
	document.forms.item('IronPointForm').method='GET';
  document.forms.item('IronPointForm').name='gs';
  document.forms.item('IronPointForm').action='http://google.tru.ca/search';
  document.forms.item('IronPointForm').submit(); 
};
/*-----------------------------------------------*/





/*-----------------------------------------------*/
function gotoURL(url){
  if(url != ""){
    document.location = url;
  }
}
/*-----------------------------------------------*/



