function om(cat,id)
{
	//window.open('/mobilephone.aspx?cat="+cat+"&id="+id+"','MP','width=200,height=436,tollbar=no,scroll=no,');


	//url='http://mms.9588.com/send.aspx?cat='+cat+'&id='+id;
	
	if( location.hostname.toLowerCase() == "localhost" )
		url='send.aspx?cat='+cat+'&id='+id;
	else
		url='http://mms.9588.com/send.aspx?cat='+cat+'&id='+id;
		
	//window.open(url,'MP','width=532,height=540,top=20,left=200,toolbar=no,scroll=no,titlebar=no');
	var obj = document.getElementsByTagName("a");
	obj[0].href = url;
	obj[0].target = "_blank";
	obj[0].click();

}

function ow(cat,id)
{
	//url='http://mms.9588.com/MmsDiyEditor/index.aspx?Mode=mo&LongCode=0056001300&ItemID=166&SeqNo=56&Picture=/Picture_Preview/1/'+id+'.gif';
	url='http://59.151.28.124/MMSCalligraphy/ASPX/SendGIF.aspx?Mode=mo&LongCode=0056001300&ItemID=166&SeqNo=56&Picture=/Picture_Preview/1/'+id+'.gif';
	//var obj = document.getElementsByTagName("a");
	//obj[0].href = url;
	//obj[0].target = "_blank";
	//obj[0].click();
	window.open(url,'DIY','width=470,height=370,top=200,left=200,tollbar=no,scroll=no,');
}

function opendiy(id)
{
	window.open('diy/diy.aspx?id="+id+"','DIY','width=400,height=380,top=200,left=200,tollbar=no,scroll=no,');
}

function or(err)
{
	url='result.aspx?err='+err;
	window.open(url,'_blank','width=455,height=320,top=200,left=200,tollbar=no,scroll=no,');
	//w.focus();
}

function cf(type,cat)
{
	if (cat=="cartoon") document.all['FM'].src="CARTOONDG.aspx?type="+type;
	if (cat=="pic") document.all['FM'].src="IMGDG.aspx?type="+type;
	if (cat=="audio") document.all['FM'].src="AUDIODG.aspx?type="+type;
}

function order( obj )
{
	od( obj.BusinessCode, obj.BusinessName,obj.BackgroundPictureFileName )
}
function od(BusinessCode,BusinessName,BackgroundPictureFileName)
{
	//window.open('/mobilephone.aspx?cat="+cat+"&id="+id+"','MP','width=200,height=436,tollbar=no,scroll=no,');
	url='order.aspx?BusinessCode='+BusinessCode+'&BackgroundPictureFileName='+BackgroundPictureFileName+'&BusinessName='+BusinessName;
	//w=window.open(url,'ORDER','width=340,height=415,top=200,left=200,tollbar=no,scroll=no,');
	/*
	w=window.open(url,'ORDER','width=580,height=490,top=50,left=200,tollbar=no,scroll=no,');
	w.focus();
	*/
	var obj = document.getElementsByTagName("a");
	obj[0].href = url;
	obj[0].target = "_blank";
	obj[0].click();

}
function ModifyParentIFrame()
{
	var obj;
	try
	{
		height = document.body.scrollHeight;
		obj = parent.document.all.FM;
		obj.height = height;
	}
	catch(e)
	{
	}
}
function CGerCN_Window(theURL,winName) { //v2.0 
  //window.open(theURL,winName,'width=580,height=480,top=100,left=200,tollbar=no,scroll=no,'); 
  window.location=theURL; 
} 

var RightBanner=""
				+"<br>"
				+"<img src='images/B1.gif' border=0 style='cursor:hand' onclick=\"window.open('http://card.9588.com/handset/Info.aspx')\" >"
var LeftBanner=""
				+"<br>"
				+"<img src='images/B1.gif' border=0 style='cursor:hand' onclick=\"window.open('http://card.9588.com/handset/Info.aspx')\" >"
lastScrollY=0; 
function MoveBanner()
{ 
	diffY=document.body.scrollTop; 
	percent=.1*(diffY-lastScrollY); 
	if(percent>0)percent=Math.ceil(percent); 
	else percent=Math.floor(percent); 
	document.all.backi1.style.pixelTop+=percent; 
	document.all.backi2.style.pixelTop+=percent; 
	lastScrollY=lastScrollY+percent; 
} 
function MmsSend( obj )
{
	if( location.hostname.toLowerCase() == "localhost" )
		url='send.aspx?cat='+obj.Category+'&id='+obj.ContentID+'&guid='+obj.guid;
	else
		url='http://mms.9588.com/send.aspx?cat='+obj.Category+'&id='+obj.ContentID+'&guid='+obj.guid;
	w=window.open(url,'MP','width=550,height=540,top=20,left=200,tollbar=no,scroll=no,');
	w.focus();
}
function SendAudio( obj )
{
	om('audio',obj.cid );
}

document.write( "<a href='#' id='popupLink'></a>" );