

function openYantraPopUp(mylink) {   		
        var openHintWindow = window.open(mylink,'YantraPopUp','width=480,height=250,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,menubars=no'); 
} 

function mm_showhidelayers() { //v6.0
  var i,p,v,obj,args=mm_showhidelayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function checkOther(){
	for(var i=0; i<document.forms.length ; ++i) {		
 		for(var j=0; j<document.forms[i].length; ++j) {	 	
			if (document.forms[i].elements[j].name == "other" ) {		
				// Wenn "other" nicht disabled dann Fokus setzen
				if (document.forms[i].elements[j].disabled == false ) {						
					document.forms[i].elements[j].focus();		
				}
			}
		}		
	}
}


function checkCountrySelectBox(){
	setOtherDisabled = true;		
	for(var i=0; i<document.forms.length ; ++i) {		
 		for(var j=0; j<document.forms[i].length; ++j) {	 	
			if (document.forms[i].elements[j].name == "land" ) {					
				for(k=0;k<document.forms[i].elements[j].length;++k) {				
					if(document.forms[i].elements[j].options[k].selected == true) {
  						if(document.forms[i].elements[j].options[k].value=="Other") {
							setOtherDisabled = false;
						}
						else{
							setOtherDisabled = true;
						}							
					}	
				}
			}	
			if (document.forms[i].elements[j].name == "other" ) {					
				if (setOtherDisabled == true) {
					document.forms[i].elements[j].value='';
					document.forms[i].elements[j].className='inputOtherGrey';						
				}
				else {
					document.forms[i].elements[j].className='inputOther';	
							
				}
				document.forms[i].elements[j].disabled = setOtherDisabled;				
			}	

			if (document.forms[i].elements[j].name == "use_other" ) {					
				if (setOtherDisabled == true) {
					document.forms[i].elements[j].value='false';
				}
				else {
					document.forms[i].elements[j].value='true';					
				}		
				
			}			
			
		}
	}		
}


////////////////////////////////////////////////////
// Open HintPopUp /////////////////////////
//////////////////////////////////////////////////
function openHintWindow() {   		
        var openHintWindow = window.open('/search/hints_tips.asp','HintsTips','width=380,height=475,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,menubars=no'); 
} 


// JavaScript Document
var strBaseUrl = "http://" + window.location.hostname;
var strAppsUrl = "http://" + window.location.hostname;


//------------------------------ Search Form Function ------------------------------//
function checkValid() {
	if(document.formsearch.CiRestriction.value == ''){
		alert("Please type your keywords.");
		return false;
	}
	var reg2 = /[,|~|{|[|}|!|#|$|%|^|*|(|)|=|<|>|?|'|;|||]/;	
	 
	if ( reg2.test(document.formsearch.CiRestriction.value)){
		alert("Non alphanumeric characters are not allowed.");
		return false;	
	 }
    var str = document.formsearch.CiRestriction.value;
 
	 if  (str.indexOf(']')> -1){
		alert("Non alphanumeric characters are not allowed.");
		return false;
	}	
	if  (str.indexOf('\\')> -1){
		alert("Non alphanumeric characters are not allowed.");
		return false;
	}		
	if  (str.indexOf('\/')> -1){
		alert("Non alphanumeric characters are not allowed.");
		return false;
	}
	if  (str.indexOf(' ')== 0){
		alert("A space is not allowed as the first character.");
		return false;
	}	
	if  (str.indexOf(' ')== 1 &&  str.indexOf(' ',2)== 3){
		alert("A search string can not contain that many single chacters in a row.");
		return false;
	}				
	if (str.length == 3 && str.indexOf(' ')== 1){
		alert("Not enough valid alphanumeric characters to search on.");
		return false;
	}			
	if  (str.indexOf('__')> -1){
		alert("Non alphanumeric characters are not allowed.");
		return false;
	}	
	if (str.length==3 && str.indexOf('_')== 0 && str.lastIndexOf('_')== 2  ){
		alert("You search string must contain at least three alphanumeric characters.");
		return false;
	}		
	if (str.length<3){
		alert("You search string must contain at least three alphanumeric characters.");
		return false;
		}else{
		openNewWindow('/search/savesearch.asp?CiRestriction=' + document.getElementById("CiRestriction").value + '','Search','500','500');
		return true;
	}
}
//------------------------------ Education Include -----------------------------------//
function educationInclude()
{
	var strCode = "";
	strCode +="<table width=\"140\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" class=\"bug\"><tr>";
	strCode +="<td width=\"9\"><img src=\"" + strBaseUrl + "/images/bug/sBug_top_l.gif\" width=\"9\" height=\"9\" border=\"0\"></td>";
    strCode +="<td width=\"122\" background=\"" + strBaseUrl + "/images/bug/sBug_top_tile.gif\"><img src=\"" + strBaseUrl + "/images/bug/sBug_top_tile.gif\" width=\"4\" height=\"9\" border=\"0\"></td>";
    strCode +="<td width=\"9\"><img src=\"" + strBaseUrl + "/images/bug/sBug_top_r.gif\" width=\"9\" height=\"9\" border=\"0\"></td>";
	strCode +="</tr><tr>";
    strCode +="<td background=\"" + strBaseUrl + "/images/bug/sBug_ltitle.gif\"><img src=\"" + strBaseUrl + "/images/bug/sBug_ltitle.gif\" width=\"9\" height=\"28\" border=\"0\">";
    strCode +="<td height=\"28\" bgcolor=\"#EEEEEE\" class=\"bugTitle\"><p>Quick Links</p></td>";
    strCode +="<td width=\"9\" background=\"" + strBaseUrl + "/images/bug/sBug_rtitle.gif\"><img src=\"" + strBaseUrl + "/images/bug/sBug_rtitle.gif\" width=\"9\" height=\"28\"></td>";
	strCode +="</tr><tr>";
    strCode +="<td background=\"" + strBaseUrl + "/images/bug/sBug_l.gif\"></td>";
    strCode +="<td class=\"bug\">";
    strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"whats_new.html\"> What&rsquo;s New</a><br>";
    strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"/Services/Education/training_tracks.html\"> Training Tracks</a><br>";
	strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"http://education.sterlingcommerce.com/Courses/CalendarShell.asp\"> Course Calendar</a><br>";
    strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"/PDF/Services/education/Educ_Catalog.pdf\" target=_blank> Course Catalog</a><br>";
    strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"/Services/Education/trng_centers.html\"> Training Centers</a><br>";	
    strCode +="<img src=\"" + strBaseUrl + "/images/bullet_greyArrow.gif\" width=\"7\" height=\"7\" border=\"0\"><a href=\"/Services/Education/contact.html\"> Contact Us </a><br>";
    strCode +="</td>";
    strCode +="<td background=\"" + strBaseUrl + "/images/bug/sBug_r.gif\">&nbsp;</td>";
	strCode +="</tr><tr>";
    strCode +="<td><img src=\"" + strBaseUrl + "/images/bug/sBug_bottom_l.gif\" width=\"9\" height=\"12\" border=\"0\"></td>";
    strCode +="<td background=\"" + strBaseUrl + "/images/bug/sBug_bottom_tile.gif\"><img src=\"" + strBaseUrl + "/images/bug/sBug_bottom_tile.gif\" width=\"4\" height=\"12\" border=\"0\"></td>";
    strCode +="<td><img src=\"" + strBaseUrl + "/images/bug/sBug_bottom_r.gif\" width=\"9\" height=\"12\" border=\"0\"></td>";
	strCode +="</tr></table>";
	document.write(strCode);
	strCode="";

}
//------------------------------- HEADER N FOOTER ------------------------------------//	
function buildHeader(){
	var header = "";
	header += "<form onsubmit=\"return checkValid();\" id=\"formsearch\" name=\"formsearch\" method=\"get\" action=\"\">";
	header += "<table width=\"760\" height=\"30\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#EEEEEE\" id=\"header\"><tr>";
	header += "<td align=\"right\" valign=\"center\" class=\"topHeader\">";
	header += "<a href=\"/Customer/\">Customer Support</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	header += "<a href=\"" + strBaseUrl + "/about/companyinfo/officelocations.html\" >Global Sites</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	header += "<a href=\"javascript:openNewWindow('" + strBaseUrl + "/contact/default.asp','Contact',500,500);\">Contact</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	//header += "<a href=\"" + strBaseUrl + "/Help/help.html\">Help</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	header += "<a href=\"javascript:openNewWindow('" + strBaseUrl + "/help/helpsmall.html','Help',500,500);\">Help</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	header += "<a href=\"/Partners/\">Partners</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	header += "<a href=\"http://www.releasesoftware.com/_sterlingcommercesoftwareshop/cgi-bin/pd.cgi\">Software Shop</a> &nbsp;&nbsp;| </td>";
	header += "<td width=\"130\" height=\"30\" align=\"right\" class=\"topHeader\">";
	header += "<input name=\"CiRestriction\" id=\"CiRestriction\" type=\"text\" class=\"INPUT\" value=\"Search\" size=\"25\"> </td>";
	header += "<td width=\"30\" align=\"left\" class=\"topHeader\">";
	header += "<input name=\"search\" type=\"image\" id=\"search\" src=\"" + strBaseUrl + "/images/buttons/searchBtn.gif\" width=\"19\" height=\"20\" border=\"0\"></td>";
	header += "</tr></table></form>";
	document.write (header);
	/* OLD FORM FIELD 4 NETSCAPE
	if(document.layers){
	Text += "<INPUT type=\"text\" id=\"CiRestriction\" size=\"8\" name=\"CiRestriction\" class=\"searchInput\">";
	}else{
	Text += "<INPUT type=\"text\" id=\"CiRestriction\" size=\"15\" name=\"CiRestriction\" class=\"searchInput\">";
	}*/
}


function pageTop()
	{
	var strText = "";
	strText += "<tr valign=\"top\">";
  strText += "<td height=\"40\" colspan=\"3\">";
  document.write(strText);
  buildHeader();
  strText = "";
  strText += "</td>";
  strText += "</tr>";
  strText += "<tr valign=\"top\">";
  strText += "<td height=\"72\" colspan=\"3\"><a href=\"/\"><img src=\"/images/logo_small.gif\" width=\"181\" height=\"60\" border=\"0\"></a></td>";
  strText += "</tr>";
  strText += "<tr>";
  strText += "<td height=\"28\" colspan=\"3\">";
  document.write(strText);
  buildNav();
  strText = "";
  strText += "</td>";
  strText += "</tr>";
  document.write(strText);
            }



function buildFormHeader(){
	var header = "";
	header += "<table width=\"760\" height=\"20\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#EEEEEE\" id=\"header\"><tr>";
	header += "<td align=\"right\" valign=\"center\" class=\"topHeader\">";
	header += "<a href=\"" + strBaseUrl + "/\">Home</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	header += "<a href=\"javascript:openNewWindow('" + strBaseUrl + "/contact/default.asp','Contact',500,500);\">Contact</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	//header += "<a href=\"" + strBaseUrl + "/Help/help.html\">Help</a> &nbsp;&nbsp; ";
	header += "<a href=\"javascript:openNewWindow('" + strBaseUrl + "/help/helpsmall.html','Help',500,600);\">Help</a> &nbsp;&nbsp; ";
	header += "</tr></table>";
	document.write (header);

}


function buildHeaderSmall(){
	var header = "";
	header += "<table width=\"480\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#EEEEEE\" id=\"header\">";
	header += "<tr>";
	header += "<td align=\"right\" valign=\"center\" class=\"topHeader\" width=\"100%\" height=\"20\">";
	header += "<a href=\"" + strBaseUrl + "/\" >Home</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	header += "<a href=\"javascript:openNewWindow('" + strBaseUrl + "/contact/default.asp','Contact',500,500);\">Contact</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	//header += "<a href=\"" + strBaseUrl + "/Help/help.html\">Help</a>&nbsp;&nbsp;&nbsp;";
	header += "<a href=\"javascript:openNewWindow('" + strBaseUrl + "/help/helpsmall.html','Help',500,600);\">Help</a> &nbsp;&nbsp;&nbsp; ";
	header += "</tr></table>";
	document.write (header);
	/* OLD FORM FIELD 4 NETSCAPE
	if(document.layers){
	Text += "<INPUT type=\"text\" id=\"CiRestriction\" size=\"8\" name=\"CiRestriction\" class=\"searchInput\">";
	}else{
	Text += "<INPUT type=\"text\" id=\"CiRestriction\" size=\"15\" name=\"CiRestriction\" class=\"searchInput\">";
	}*/
}


function buildHeaderPopup(){
	var header = "";
	header += "<table width=\"480\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#EEEEEE\" id=\"header\">";
	header += "<tr>";
	header += "<td align=\"right\" valign=\"center\" class=\"topHeader\" width=\"100%\" height=\"20\">";
	header += "<A href=\"#\" onclick=\"javascript: window.opener.document.location.href='/'\">Home</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	header += "<a href=\"/contact/default.asp\">Contact</a> &nbsp;&nbsp;|&nbsp;&nbsp; ";
	header += "<a href=\"" + strBaseUrl + "/Help/helpsmall.html\">Help</a>&nbsp;&nbsp;&nbsp;";
	header += "</tr></table>";
	document.write (header);
	/* OLD FORM FIELD 4 NETSCAPE
	if(document.layers){
	Text += "<INPUT type=\"text\" id=\"CiRestriction\" size=\"8\" name=\"CiRestriction\" class=\"searchInput\">";
	}else{
	Text += "<INPUT type=\"text\" id=\"CiRestriction\" size=\"15\" name=\"CiRestriction\" class=\"searchInput\">";
	}*/
}

function buildFooter(){
	var text = "";
	text += "<table width=\"100%\" height=\"20\"  border=\"0\" cellpadding=\"5\" cellspacing=\"0\" id=\"footer\">";
	text += "<tr>";
	text += "<td><a href=\"javascript:openNewWindow('" + strBaseUrl + "/Contact/default.asp','Contact',500,500)\"> Contact</a> | ";
	text += "<a href=\"" + strBaseUrl + "/sitemap.html\">Site Map</a> | ";
	text += "<a href=\"" + strBaseUrl + "/About/Careers/\">Careers</a> | ";
	text += "<a href=\"" + strBaseUrl + "/contact/Privacy_Usage.html\">Privacy Policy</a> | ";
	text += "<a href=\"" + strBaseUrl + "/contact/termsofuse.html\">Terms of Use</a> |</td>";
	text += "<td><div align=\"right\">&copy; 2005 Sterling Commerce. All Rights Reserved</div></td>";
	text += "</tr>";
	text += "</table>";
	document.write (text);
// OLD Site Search LINK
//<a href=\"javascript:openNewWindow('" + strBaseUrl + "/Search/index.html','Search',500,425)\" class=\"footer\">Site Search</a>
}

function buildFooterSmall()
	{
	var text = "";
	text += "<span align=\"right\" class=\"smallText\">&copy; 2005 Sterling Commerce. All Rights Reserved</span>";
	document.write (text);
	}


//------------------------------- MENU SYSTEM ------------------------------------//	
menuTimer=0;

function setTimer() {
	menuTimer=setTimeout("hideAll()",500);
}

function clrTimer() {
	clearTimeout(menuTimer);
}
function hideAll() { 
	hideLayer('dd1','dd2','dd3','dd4','dd5'); 
	clrTimer();
}	
function showLayer() {
	
	hideAll();
	var n=showLayer.arguments.length; 
	for (var i=0; i<n; i++) { 
       var lyr = document.getElementById(showLayer.arguments[i]).style;
		if(lyr) { 
			lyr.visibility="visible";
		} 
	} 
} 
function hideLayer() { 
	var n=hideLayer.arguments.length; 
	for (var i=0; i<n; i++) { 
		var lyr = document.getElementById(hideLayer.arguments[i]).style; 
		if(lyr) { 
			lyr.visibility = "hidden";
		} 
	} 
}

function buildSubmenus(){
	var myText = "";
	myText += "<div id=\"dropdowns\">";
//Submenu 1
	myText += "<div id=\"dd1\"><ul>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"#\">----</a></li>";
	myText += "</ul></div>";
//Submenu 2
	myText += "<div id=\"dd2\"><ul>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"SirketProfili.asp\">Sirket Profilimiz</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"iletisim.asp\">Iletisim Bilgilerimiz</a></li>";
    myText += "</ul></div>";
//Submneu3
	myText += "<div id=\"dd3\"><ul>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"eXenWMS.asp\">eXenWMS Ambar Yönetim Sistemi</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"SSYS.asp\">SSYS Stok Sahasi Yönetim Sistemi</a></li>";
    myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"CTruck.asp\">C/Truck Araç Yükleme Sistemi</a></li>"; 
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"CRoute.asp\">C/Route Rotalama Sistemi</a></li>"; 	
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"Pegasus.asp\">Pegasus Demirbas Takip Sistemi</a></li>";
	myText += "</ul></div>";
//Submenu4
	myText += "<div id=\"dd4\"><ul>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"Etiketleme.asp\">Etiketleme</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"VeriToplama.asp\">Veri Toplama</a></li>";
	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"internetHizmetleri.asp\">Internet Hizmetleri</a></li>";
	myText += "</ul></div>";
//Submenu5
	myText += "<div id=\"dd5\"><ul>";
    myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"Referanslar.asp\">Referanslar</a></li>";
//	myText += "<li><a onmouseover=\"clrTimer()\" onmouseout=\"setTimer()\" href=\"iletisim.asp\">Iletisim</a></li>";
    myText += "</ul></div>";
	myText += "</div>";
	document.write(myText);
}

function buildNav(){
	var nav = "";
	nav += "<table width=\"764\" height=\"28\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"images/menubar.jpg\" class=\"menuText\">";
	nav += "<tr>";
	nav += "<td width=\"5\"><img src=\"images/spacer.gif\" width=\"5\" height=\"1\"></td>";
	nav += "<td width=\"152\" align=\"center\" valign=\"middle\"><a href=\"default.asp\" class=\"btn_blue\" onmouseover=\"//clrTimer();showLayer('dd1')\" onmouseout=\"setTimer()\"> Ana Sayfa</a></td>";
	nav += "<td width=\"2\"><div align=\"center\"><img src=\"images/spacer.gif\" width=\"2\" height=\"1\"></div></td>";
	nav += "<td width=\"151\" align=\"center\" valign=\"middle\"><a href=\"#\" class=\"btn_green\" onmouseover=\"clrTimer();showLayer('dd2')\" onmouseout=\"setTimer()\">Sirket Profili</a></td>";
	nav += "<td width=\"2\" align=\"center\" valign=\"middle\"><div align=\"center\"><img src=\"images/spacer.gif\" width=\"2\" height=\"1\"></div></td>";
	nav += "<td width=\"148\" align=\"center\" valign=\"middle\"><a href=\"#\" class=\"btn_orange\" onmouseover=\"clrTimer();showLayer('dd3')\" onmouseout=\"setTimer()\">Çözümlerimiz</a></td>";
	nav += "<td width=\"2\" align=\"center\" valign=\"middle\"><div align=\"center\"><img src=\"images/spacer.gif\" width=\"2\" height=\"1\"></div></td>";
	nav += "<td width=\"145\" align=\"center\" valign=\"middle\"><a href=\"#\" class=\"btn_yellow\" onmouseover=\"clrTimer();showLayer('dd4')\" onmouseout=\"setTimer()\">Hizmetlerimiz</a></td>";
	nav += "<td width=\"2\" align=\"center\" valign=\"middle\"><div align=\"center\"><img src=\"images/spacer.gif\" width=\"2\" height=\"1\"></div></td>";
	nav += "<td width=\"150\" align=\"center\" valign=\"middle\"><a href=\"#\" class=\"btn_fuschia\" onmouseover=\"clrTimer();showLayer('dd5')\" onmouseout=\"setTimer()\">Referanslar</a></td>";
	nav += "<td width=\"5\"><img src=\"images/spacer.gif\" width=\"5\" height=\"8\"></td>";
	nav += "</tr></table>";
	document.write (nav)

}
//------------------------------- BANNER ------------------------------------//	
function buildHomeBanner(){
var banner="";
banner += "<img src=\"/images/home/home_banner.jpg\" width=\"760\" height=\"208\" border=\"0\" usemap=\"#BannerMap\">";
banner += "<map name=\"BannerMap\">";
banner += "<area shape=\"rect\" coords=\"305,173,395,192\" href=\"/About/OurVision/visiblebusiness.html\"></map>";
document.write (banner);
}

//------------------------------- Generic Functions ------------------------------------//	
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openNewWindow(myURL, myTitle, myWidth, myHeight)
	{
	window.open(myURL,myTitle,'toolbar=no,width=' + myWidth + ',height=' + myHeight + ',directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,location=no,copyhistory=no,alwaysraised=yes');
	}

function openNewWindow2(myURL, myTitle, myWidth, myHeight)
	{
	window.open(myURL,myTitle,'toolbar=no,width=' + myWidth + ',height=' + myHeight + ',directories=no,status=no,scrollbars=no,resizable=yes,menubar=no,location=no,copyhistory=no,alwaysraised=yes');
	}

function openContactWindow() {
        var version = parseInt(navigator.appVersion);
        if (version >= 4)
        var openContactWindow = window.open('" + strBaseUrl + "/contact/default.asp','Contact','width=500,height=500,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubars=no'); 
}
function stripSpaces(mystring)
		{
			x = mystring;
			while (x.substring(0,1) == ' ') x = x.substring(1);
			while (x.substring(x.length-1,x.length) == ' ') x = x.substring(0,x.length-1);
			return x;
		}