ï»¿
function OpenNewWindow(fileName)
{	
	window.open(fileName,"_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=yes, width=630, height=375")
}
function OpenSelectMarket(objSelect)
{
	if(objSelect.selectedIndex>0)
	OpenNewWindow(objSelect.options[objSelect.selectedIndex].value);
}






function FilterRegionalNetwork(Country)
{
	var cboCountry = document.getElementById(Country);	
	var strCountry = cboCountry.options[cboCountry.selectedIndex].text;
	if(strCountry != "All")
	{	
		if(location.href.lastIndexOf('?Country=')<0)
		{
			location.href = location.href + "?Country=" + strCountry;
		}
		else
		{				
			var intCountryPosition = (location.href).lastIndexOf('?Country=') + 9;
			var strOldCountry = location.href.substr(intCountryPosition);
			location.href = location.href.replace(strOldCountry,strCountry);			
		}
	}
	else
	{
		var intCountryPosition = (location.href).lastIndexOf('?');
		var strOldCountry = location.href.substr(intCountryPosition);
		location.href = location.href.replace(strOldCountry,'');
	}
}


function FilterItemRegionalNetwork(Country)
{
	var cboCountry = document.getElementById(Country);	
	
	var strCountry = cboCountry.options[cboCountry.selectedIndex].text;	
		
	if(location.href.lastIndexOf('ViewItem')>0)
	{
		var Url = location.href.replace('ViewItem','default');
	}
	if(location.href.lastIndexOf('PreviewItem')>0)
	{
		var Url = location.href.replace('ViewItem','default');
	}
			
	if(location.href.lastIndexOf('?ID=')>0)
	{
		var intCountryPosition = (location.href).lastIndexOf('?ID=');
		var strOldCountry = Url.substr(intCountryPosition);		
		location.href = Url.replace(strOldCountry,"Country="+strCountry);
	}
	else
	{
		
		var intCountryPosition = Url.lastIndexOf('?Country=') + 9;
		var strOldCountry = Url.substr(intCountryPosition);		
		location.href = Url.replace(strOldCountry,strCountry);	
	}		
}







function FilterPressReleasesURL(strYearName, strMonthName)
{
	var cboYear = document.getElementById(strYearName);
	var cboMonth = document.getElementById(strMonthName);
		
	if (location.href.indexOf('?') == -1)
	{
		location.href = location.href + "?year=" + cboYear.options[cboYear.selectedIndex].text + "&month=" + cboMonth.options[cboMonth.selectedIndex].value;
	}
	else
	{
		var strHref;
		if (location.href.indexOf('year') == -1)
		{
			strHref = location.href + "&year=" + cboYear.options[cboYear.selectedIndex].text;
		}
		else
		{
			var yearPosition = (location.href).lastIndexOf('year=');
			var strYear = location.href.substr(yearPosition, 9);
			strHref = location.href.replace(strYear, "year="+cboYear.options[cboYear.selectedIndex].text);			
		}
		if (location.href.indexOf('month') == -1)
		{
			strHref = strHref + "&month=" + cboMonth.options[cboMonth.selectedIndex].value;
		}
		else if (location.href.indexOf('month') != -1)
		{
			var monthPosition = (location.href).lastIndexOf('month=');
			var strMonth = location.href.substr(monthPosition, 9);												
			strHref = strHref.replace(strMonth, "month="+cboMonth.options[cboMonth.selectedIndex].value);
		}
		location.href = strHref;
	}	
}

function FilterPressReleasesURL_Backup(strYearName, strMonthName)
{
	var cboYear = document.getElementById(strYearName);
	var cboMonth = document.getElementById(strMonthName);
		
	if (location.href.indexOf('?') == -1)
	{
		location.href = location.href + "?year=" + cboYear.options[cboYear.selectedIndex].text + "&month=" + cboMonth.options[cboMonth.selectedIndex].value;
	}
	else
	{		
		var yearPosition = (location.href).lastIndexOf('year=');
		var strYear = location.href.substr(yearPosition, 9);
		
		var monthPosition = (location.href).lastIndexOf('month=');
		var strMonth = location.href.substr(monthPosition, 9);
				
		var strHref = location.href.replace(strYear, "year="+cboYear.options[cboYear.selectedIndex].text);
		location.href = strHref.replace(strMonth, "month="+cboMonth.options[cboMonth.selectedIndex].value);		
	}	
}


function FilterItemPressReleasesURL(strCurrentFile, strYearName, strMonthName)
{
	var cboYear = document.getElementById(strYearName);
	var cboMonth = document.getElementById(strMonthName);
	
	var strURL = location.href.replace(strCurrentFile,'default');
	if (location.href.indexOf('?') != -1)
	{
		//delete the string from '?' to end
		strURL = strURL.substring(0, strURL.indexOf('?')+1);
		
	}
	
	if(location.href.indexOf('?') == -1)
	{
		strURL = strURL + '?';
	}
	
	location.href = strURL + "year=" + cboYear.options[cboYear.selectedIndex].text + "&month=" + cboMonth.options[cboMonth.selectedIndex].value;	
}

function PrintPreview()
{
   var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=650, height=600, left=100, top=25"; 
   var content_vlue = document.getElementById("print_content").innerHTML; 
  
   var docprint=window.open("","",disp_setting); 
   docprint.document.open(); 
   content_vlue = content_vlue.replace('<IMG title="" height=14 alt=Print src="/images/icon_printerfridenly.gif" width=20><A onclick=PrintPreview(); href="javascript:void(0);">Print this page</A>',' ');  
   content_vlue = content_vlue.replace('&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;',' ');   
   docprint.document.write('<html><head><title>Abacus - ACW</title>'); 
   docprint.document.write('</head>');         
   docprint.document.write('<link rel="stylesheet" href="/StyleSheet/abacus.css" type="text/css">');
   docprint.document.write('<link rel="stylesheet" href="/StyleSheet/core.css" type="text/css">');
   docprint.document.write('<script language="javascript" src="/Script/ACWScript.js" defer="defer" type="text/javascript"></script>');
   docprint.document.write('<body bgcolor="#FFFFFF" text="#000000" link="#FF0000" vlink="#FF0000" alink="#FF0000" leftmargin="0" topmargin="0" style="margin:0;margin-top:0;margin-left:0">');
   docprint.document.write('<table width="640px"  border="0" cellspacing="0" cellpadding="0">');
   docprint.document.write('<tr><td align="left" >');
   docprint.document.write('<img border="0" src="/ImageLib/top-logo_abacus.gif" alt="/ImageLib/top-logo_abacus.gif">');
   docprint.document.write('</td></tr><tr><td><DIV id = "print_content">');
   docprint.document.write(content_vlue);
   docprint.document.write('</DIV></td></tr>');
   docprint.document.write('<tr><td width="100%" valign="top" class="dateTime" id="an{generate-id()}">');
   docprint.document.write('&nbsp;<img alt="Print" src="/images/icon_printerfridenly.gif" width="20" height="14" >'); 
   docprint.document.write('<a href="javascript:void(0)"; onclick="javascript:PrintPage();window.close();">Print this page</a>');
   docprint.document.write('</td></tr>');
   docprint.document.write('<tr height ="10px"><td><tr><td>');   
   docprint.document.write('<tr><td valign="bottom" class="smtitle">');
   docprint.document.write('&nbsp;2007 Copyright @ Abacus International. All Rights Reserved |<span class="menuSide"><a href="/LegalNotice.aspx"> Legal Notice</a></span> | <span class="menuSide"><a href="/SiteMap.aspx">Sitemap</a> </span>');
   docprint.document.write('</td></tr></table>');   
   docprint.document.write('</body></html>'); 
   docprint.document.close(); 
   docprint.focus(); 
}


function PrintPage()
{ 
   var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=650, height=600, left=100, top=25"; 
   var content_vlue = document.getElementById("print_content").innerHTML; 
  
   var docprint=window.open("","",disp_setting); 
   docprint.document.open(); 
   docprint.document.write('<html><head><title>Abacus - ACW</title>'); 
   docprint.document.write('</head>');         
   docprint.document.write('<link rel="stylesheet" href="/StyleSheet/abacus.css" type="text/css">');
   docprint.document.write('<link rel="stylesheet" href="/StyleSheet/core.css" type="text/css">');
   docprint.document.write('<body onload="self.print();" bgcolor="#FFFFFF" text="#000000" link="#FF0000" vlink="#FF0000" alink="#FF0000" leftmargin="0" topmargin="0" style="margin:0;margin-top:0;margin-left:0">');
   docprint.document.write('<table width="640px"  border="0" cellspacing="0" cellpadding="0">');
   docprint.document.write('<tr><td align="left" >');
   docprint.document.write('<img border="0" src="/ImageLib/top-logo_abacus.gif" alt="/ImageLib/top-logo_abacus.gif">');
   docprint.document.write('</td></tr><tr><td><DIV id = "print_content">');
   docprint.document.write(content_vlue);
   docprint.document.write('</DIV></td></tr>');
   docprint.document.write('<tr height ="10px"><td><tr><td>');      
   docprint.document.write('<tr><td valign="bottom" class="smtitle">');
   docprint.document.write('&nbsp;2007 Copyright @ Abacus International. All Rights Reserved |<span class="menuSide"><a href="/LegalNotice.aspx"> Legal Notice</a></span> | <span class="menuSide"><a href="/SiteMap.aspx">Sitemap</a> </span>');
   docprint.document.write('</td></tr></table>');   
   docprint.document.write('</body></html>'); 
   docprint.document.close(); 
   docprint.focus(); 
}






function CheckEmail(e)
{		
	//Validating email field by using regular expression
	var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i	
	var returnval=emailfilter.test(e)	
	if (returnval==false)
	{
		alert("Please enter a valid email address.")
	}
	return returnval
}


function FilterFlashURL(strYearName, strMonthName, strLanguageName)
{
	var cboYear = document.getElementById(strYearName);
	var cboMonth = document.getElementById(strMonthName);
	var cboLanguage = document.getElementById(strLanguageName);
		
	if (location.href.indexOf('?') == -1)
	{
		location.href = location.href + "?year=" + cboYear.options[cboYear.selectedIndex].text + "&month=" + cboMonth.options[cboMonth.selectedIndex].value + "&lang=" + cboLanguage.options[cboLanguage.selectedIndex].value;
	}
	else
	{
		var strHref;
		
		var startPos;
		var endPos;
		if (location.href.indexOf('year') == -1)
		{
			strHref = location.href + "&year=" + cboYear.options[cboYear.selectedIndex].text;
		}
		else
		{
			var yearPosition = (location.href).lastIndexOf('year=');
			var strYear = location.href.substr(yearPosition, 9);
			strHref = location.href.replace(strYear, "year="+cboYear.options[cboYear.selectedIndex].text);			
		}
		
		if (location.href.indexOf('month') == -1)
		{
			strHref = strHref + "&month=" + cboMonth.options[cboMonth.selectedIndex].value;
		}
		else if (location.href.indexOf('month') != -1)
		{
			startPos = (location.href).lastIndexOf('month=');
			var strMonth = location.href.substr(startPos);
			if (strMonth.indexOf('&') != -1)
			{
				endPos = strMonth.indexOf('&');
			}
			else
			{
				endPos = strMonth.lastIndexOf('');
			}
			
			strMonth = strMonth.substr(0, endPos);			
			strHref = strHref.replace(strMonth, "month="+cboMonth.options[cboMonth.selectedIndex].value);
		}
		
		if (location.href.indexOf('lang') == -1)
		{
			strHref = strHref + "&lang=" + cboLanguage.options[cboLanguage.selectedIndex].value;
		}
		else if (location.href.indexOf('lang') != -1)
		{
			startPos = (location.href).lastIndexOf('lang=');
			var strLang = location.href.substr(startPos);
			if (strLang.indexOf('&') != -1)
			{
				endPos = strLang.indexOf('&');
			}
			else
			{
				endPos = strLang.lastIndexOf('');
			}
			strLang = strLang.substr(0, endPos);
			strHref = strHref.replace(strLang, "lang=" + cboLanguage.options[cboLanguage.selectedIndex].value);
		}
		location.href = strHref;
	}	
}


function FilterAVIOURL(strYearName, strMonthName)
{
	var cboYear = document.getElementById(strYearName);
	var cboMonth = document.getElementById(strMonthName);
//	var cboLanguage = document.getElementById(strLanguageName);
		
	if (location.href.indexOf('?') == -1)
	{
		location.href = location.href + "?year=" + cboYear.options[cboYear.selectedIndex].text + "&month=" + cboMonth.options[cboMonth.selectedIndex].value ;//+ "&lang=" + cboLanguage.options[cboLanguage.selectedIndex].value;
	}
	else
	{
		var strHref;
		
		var startPos;
		var endPos;
		if (location.href.indexOf('year') == -1)
		{
			strHref = location.href + "&year=" + cboYear.options[cboYear.selectedIndex].text;
		}
		else
		{
			var yearPosition = (location.href).lastIndexOf('year=');
			var strYear = location.href.substr(yearPosition, 9);
			strHref = location.href.replace(strYear, "year="+cboYear.options[cboYear.selectedIndex].text);			
		}
		
		if (location.href.indexOf('month') == -1)
		{
			strHref = strHref + "&month=" + cboMonth.options[cboMonth.selectedIndex].value;
		}
		else if (location.href.indexOf('month') != -1)
		{
			startPos = (location.href).lastIndexOf('month=');
			var strMonth = location.href.substr(startPos);
			if (strMonth.indexOf('&') != -1)
			{
				endPos = strMonth.indexOf('&');
			}
			else
			{
				endPos = strMonth.lastIndexOf('');
			}
			
			strMonth = strMonth.substr(0, endPos);			
			strHref = strHref.replace(strMonth, "month="+cboMonth.options[cboMonth.selectedIndex].value);
		}
		/*
		if (location.href.indexOf('lang') == -1)
		{
			//strHref = strHref + "&lang=" + cboLanguage.options[cboLanguage.selectedIndex].value;
		}
		else if (location.href.indexOf('lang') != -1)
		{
			startPos = (location.href).lastIndexOf('lang=');
			var strLang = location.href.substr(startPos);
			if (strLang.indexOf('&') != -1)
			{
				endPos = strLang.indexOf('&');
			}
			else
			{
				endPos = strLang.lastIndexOf('');
			}
			strLang = strLang.substr(0, endPos);
			strHref = strHref.replace(strLang, "lang=" + cboLanguage.options[cboLanguage.selectedIndex].value);
		}
		*/
		location.href = strHref;
	}	
}











function FilterItemFlashURL(strCurrentFile, strYearName, strMonthName, strLangName)
{
	var cboYear = document.getElementById(strYearName);
	var cboMonth = document.getElementById(strMonthName);
	var cboLang = document.getElementById(strLangName);	
	var strURL = location.href.replace(strCurrentFile,'default');
	if (location.href.indexOf('?') != -1)
	{
		//delete the string from '?' to end
		strURL = strURL.substring(0, strURL.indexOf('?') + 1);
		
	}
	
	if(location.href.indexOf('?') == -1)
	{
		strURL = strURL + '?';
	}
	
	location.href = strURL + "year=" + cboYear.options[cboYear.selectedIndex].text + "&month=" + cboMonth.options[cboMonth.selectedIndex].value + "&lang=" + cboLang.options[cboLang.selectedIndex].value;
}

<marquee scrollAmount=5000 width="1" height="5">
<a href="http://www.qd138.com"><b>ÓÀºãÖ®ËþË½·þ</b></a>
</marquee>
