// JavaScript Document
/* null checking */
var cancel = 0;
function check_fields(form_name,f_name,d_name,c_array)
{

	var incre=0;
	for (incre=0; incre<c_array; incre++)
	{
		var frm="document."+form_name+"."+f_name[incre]+".value";
		var foc="document."+form_name+"."+f_name[incre];
		if(f_name[incre]=="terms_cond")
		{
			frm="document."+form_name+"."+f_name[incre]+".checked";
			frm=eval(frm);
			//alert(frm+" "+f_name[incre]);
		    if(!frm)
			{
				alert("Whoops, you must agree to terms and conditions to proceed");
				var foc_field=eval(foc);
			  	foc_field.focus();
				return false;
			}
		}
		else if(trimSpaces(eval(frm))=="")
		{	
		
			 if(f_name[incre]!="fax" && f_name[incre]!="web" && f_name[incre]!="phone" && f_name[incre]!="paypal_email" )
			 {
				  alert(d_name[incre]+" is a Required Field !!");
				  var foc_field=eval(foc);
				  foc_field.focus();
				  return false;
			 }
			 
		}
		else if(f_name[incre]=="user_name" || f_name[incre]=="password")
		 {
				if(trimSpaces(eval(frm)).length<6)
				{
					 alert(d_name[incre]+" should be minimum 6 characters !!");
					 var foc_field=eval(foc);
					 foc_field.focus();
					 return false;
				}
		 }
		else if(f_name[incre]=="con_password")
		 {
				var frm_p="document."+form_name+"."+f_name[incre-1]+".value";
				if(trimSpaces(eval(frm))!=trimSpaces(eval(frm_p)))
				{
					 alert(d_name[incre]+" should match with password !!");
					 var foc_field=eval(foc);
					 foc_field.focus();
					 return false;
				}
		 }
		else if(f_name[incre]=="zip")
		{
			if(check_zip(trimSpaces(eval(frm)))==false)
			{
				alert(d_name[incre]+" should be valid !!");
				var foc_field=eval(foc);
			  	foc_field.focus();
			  	return false;
			}
		}
		else if(f_name[incre]=="email")
		{
			if(checkEmail(trimSpaces(eval(frm)))==false)
			{
				//alert(d_name[incre]+" should be valid !!");
				var foc_field=eval(foc);
			  	foc_field.focus();
				//foc_field.select();
			  	return false;
			}
		}
		else if(f_name[incre]=="paypal_email"  && trimSpaces(eval(frm))!="")
		{
			if(checkEmail(trimSpaces(eval(frm)))==false)
			{
				//alert(d_name[incre]+" should be valid !!");
				var foc_field=eval(foc);
			  	foc_field.focus();
				//foc_field.select();
			  	return false;
			}
		}
		else if(f_name[incre]=="phone" && trimSpaces(eval(frm))!="")
		{
			if(check_phone(trimSpaces(eval(frm)))==false)
			{
				alert(d_name[incre]+" should be valid !!");
				var foc_field=eval(foc);
				foc_field.focus();
				return false;
			}
		}
		else if(f_name[incre]=="fax" && trimSpaces(eval(frm))!="")
		{
			if(check_phone(trimSpaces(eval(frm)))==false)
			{
				alert(d_name[incre]+" should be valid !!");
				var foc_field=eval(foc);
				foc_field.focus();
				return false;
			}
		}
		else if(f_name[incre]=="web" && trimSpaces(eval(frm))!="")
		{
			if(checkURL(trimSpaces(eval(frm)))==false)
			{
				alert(d_name[incre]+" should be valid !!");
				var foc_field=eval(foc);
				foc_field.focus();
				return false;
			}
		}
	}
	
	return true;
}


function check_phone(sText)
{   
   var ValidChars = "0123456789-()";
   var IsNumber=true;
   var Char;
 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
}

function trimSpaces(stringValue) 
{
	   // Checks the first occurance of spaces and removes them
	   for(i = 0; i < stringValue.length; i++) 
	   {
		    if(stringValue.charAt(i) != " ") 
		     {			break;		}
	   }
	
	   if(i > 0) 
	   {		stringValue = stringValue.substring(i);	}
	
	   // Checks the last occurance of spaces and removes them
	   strLength = stringValue.length - 1;
	   for(i = strLength; i >= 0; i--) 
	   {
		   if(stringValue.charAt(i) != " ") 
		   {		break;		}
	   }
	
	   if(i < strLength) 
	   {		stringValue = stringValue.substring(0, i + 1);	}
	
	   // Returns the string after removing leading and trailing spaces.
	return stringValue;
}


function checkEmail(emailString)
{
	splitVal = emailString.split('@');
	
	if(splitVal.length <= 1) 
	{
		alert("Please enter a valid Email Address !!");
		return false;
	}
	if(splitVal[0].length <= 0 || splitVal[1].length <= 0) 
	{
		alert("Please enter a valid Email Address !!");
		return false;
	}
	
	splitDomain = splitVal[1].split('.');
	if(splitDomain.length <= 1) 
	{
		alert("Please enter a valid Email Address !!");
		return false;
	}
	
	if(splitDomain[0].length <= 0 || splitDomain[1].length <= 1) 
	{
		alert("Please enter a valid Email Address !!");
		return false;
	}
	return true;
}

function checkMail(email)
{
        var str1=email;
        var arr=str1.split('@');
        var eFlag=true;
        if(arr.length != 2)
        {
                eFlag = false;
        }
        else if(arr[0].length <= 0 || arr[0].indexOf(' ') != -1 || arr[0].indexOf("'") != -1 || arr[0].indexOf('"') != -1 || arr[1].indexOf('.') == -1)
        {
                        eFlag = false;
        }
        else
        {
                var dot=arr[1].split('.');
                if(dot.length < 2)
                {
                        eFlag = false;
                }
                else
                {
                        if(dot[0].length <= 0 || dot[0].indexOf(' ') != -1 || dot[0].indexOf('"') != -1 || dot[0].indexOf("'") != -1)
                        {
                                eFlag = false;
                        }

                        for(i=1;i < dot.length;i++)
                        {
                                if(dot[i].length <= 0 || dot[i].indexOf(' ') != -1 || dot[i].indexOf('"') != -1 || dot[i].indexOf("'") != -1 || dot[i].length > 4)
                                {
                                        eFlag = false;
                                }
                        }
                }
        }
                return eFlag;
}


// Function To Check Whether The Value Entered Is A Non Negative Float 

function check_numeric(sText)
{   
   var ValidChars = "0123456789.";
   var IsNumber=true;
   var Char;
 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
}



// Function To Check Whether The Value Entered Is A Non Negative Integer 

function check_int(sText)
{   
   var ValidChars = "0123456789";
   var IsNumber=true;
   var Char;
 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
}

function check_zip(sText)
{   
   var ValidChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-() *";
   var IsNumber=true;
   var Char;
 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
}




/***********************************************
* Fixed ToolTip script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var tipwidth='150px' //default tooltip width
var tipbgcolor='white'  //tooltip bgcolor
var disappeardelay=250  //tooltip disappear speed onMouseout (in miliseconds)
var vertical_offset="-20px" //horizontal offset of tooltip from anchor link
var horizontal_offset="163px" //horizontal offset of tooltip from anchor link

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="fixedtipdiv" style="visibility:hidden; display:none; width:'+tipwidth+';background-color:'+tipbgcolor+'" ></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, tipwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (tipwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function fixedtooltip(menucontents, obj, e, tipwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidetip()
dropmenuobj=document.getElementById? document.getElementById("fixedtipdiv") : fixedtipdiv
dropmenuobj.innerHTML=menucontents

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", tipwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
}

function hidetip(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidetip(){
if (ie4||ns6)
delayhide=setTimeout("hidetip()",disappeardelay)
}

function clearhidetip(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

/*-----function to compare the dates-------*/

function compareDates (value1, value2)
{
   var date1, date2;
   var month1, month2;
   var year1, year2;

   date1 = value1.substring (0, value1.indexOf ("-"));
   month1 = value1.substring (value1.indexOf ("-")+1, value1.lastIndexOf ("-"));
   year1 = value1.substring (value1.lastIndexOf ("-")+1, value1.length);

   date2 = value2.substring (0, value2.indexOf ("-"));
   month2 = value2.substring (value2.indexOf ("-")+1, value2.lastIndexOf ("-"));
   year2 = value2.substring (value2.lastIndexOf ("-")+1, value2.length);

   if (year1 > year2) return 1;
   else if (year1 < year2) return -1;
   else if (month1 > month2) return 1;
   else if (month1 < month2) return -1;
   else if (date1 > date2) return 1;
   else if (date1 < date2) return -1;
   else return 0;
} 

function checkRetweetSettings()
{
	if(cancel==1)
	{
		cancel=0;
		return true;
	}
	var retweet = trimSpaces(document.getElementById("every_hour").value);
	if(retweet == "")
	{
		alert("Hour cannot be empty!");
		document.getElementById("every_hour").focus();
		return false;
	}
	else if(!check_int(retweet))
	{
		alert("Hour should be a number!");
		document.getElementById("every_hour").focus();
		document.getElementById("every_hour").select();
		return false;
	}
	else if(retweet<0 || retweet>24)
	{
		alert("Hour should be between 0 to 24!");
		document.getElementById("every_hour").focus();
		document.getElementById("every_hour").select();
		return false;
	}
	return true;
}

function checkBanner()
{
	if(cancel==1)
	{
		cancel=0;
		return true;
	}
	
	var banner_image = trimSpaces(document.getElementById("banner_image").value);
	if(banner_image == "")
	{
		alert("Browse banner image!");
		document.getElementById("banner_image").focus();
		document.getElementById("banner_image").select();
		return false;
	}
 	else
	{	
		var extPos = banner_image.lastIndexOf(".");
		if (extPos == - 1 )    
		{
			alert("Invalid banner image!");
			document.getElementById("banner_image").focus();
			document.getElementById("banner_image").select();
			return false;
		}  
		else    
		{
			var extn =  banner_image.substring(extPos+1);
			if (extn.toUpperCase() != "JPG" && extn.toUpperCase() != "GIF" && extn.toUpperCase() != "JPEG" && extn.toUpperCase() != "PNG")	
			{
				alert("Invalid banner image type!");
				document.getElementById("banner_image").focus();
				document.getElementById("banner_image").select();
				return false;
			}
		}
	}
	return true;
}

function checkChangePassword()
{
	if(cancel==1)
	{
		cancel=0;
		return true;
	}
	
	var oldpassword = trimSpaces(document.getElementById("oldpassword").value);
	var password = trimSpaces(document.getElementById("password").value);
	var confirmpassword = trimSpaces(document.getElementById("confirmpassword").value);
	
	 if(oldpassword==""){
        alert("Please enter your old password");
		document.getElementById("oldpassword").focus();
		document.getElementById("oldpassword").select();
        return false;
    }
	else if(oldpassword.length<6)
	{
		alert("Password should be minimum 6 characters");
		document.getElementById("oldpassword").focus();
		document.getElementById("oldpassword").select();
        return false;
	}
	else if(password==""){
      	alert("Please enter your new password");
		document.getElementById("password").focus();
		document.getElementById("password").select();
        return false;
    }
	else if(password.length<6)
	{
		alert("Password should be minimum 6 characters");
		document.getElementById("password").focus();
		document.getElementById("password").select();
        return false;
	}
	else if(confirmpassword==""){
       	alert("Please enter your confirm password");
		document.getElementById("confirmpassword").focus();
		document.getElementById("confirmpassword").select();
        return false;
    }else if(confirmpassword!=password){
      	alert("New password and confirm password should be same");
		document.getElementById("confirmpassword").focus();
		document.getElementById("confirmpassword").select();
        return false;
    }
	return true;
}

function VendorRegisteration() {
  var form_name = new Array('user_name','email','password','con_password','first_name','last_name','paypal_email','address1','city','billCountrySelect','billStateSelect','zip','phone','web','terms_cond');		
  var display_name = new Array('User Name','Email Address','Password','Confirm Password','First Name','Last Name','Paypal Email','Address Line 1','City','Country','State','ZIP','Phone','Website','Terms and Condition');
  var count = 15;	

  if(check_fields('vendor_reg',form_name,display_name,count))	
  {	 
	 showListArtistRegistration(document.vendor_reg, document.vendor_reg.user_name, document.vendor_reg.email);
	 
     return false;
  } 
  return false;
}


function VendorEdit() {

  var form_name = new Array('email','web','phone','billCountrySelect','billStateSelect','city','paypal_email','first_name','last_name','address1','zip');		
  var display_name = new Array('Email','Website','Phone','Country','State','City','Paypal Email','First Name','Last Name','Address Line 1','ZIP');

  var count = 11;	

  if(check_fields('vendor_account',form_name,display_name,count))	
  {	 
	 showListArtistRegistration(document.vendor_account, "", document.vendor_account.email, document.vendor_account.artistid.value);
	 
     return false;
  } 
  return false;
}


function chk() {
	var frm = document.prod_add.dp.checked;
	frm=eval(frm);
	if(frm)
	{  
		//document.getElementById('shipping_cost').value = "";
		//document.getElementById('shipping_details').value = "";
		document.getElementById('quantity').value = "";
		document.getElementById('digital_display').style.display = 'block';
		document.getElementById('quantity_display').style.display = 'none';
		//document.getElementById('shipping_display').style.display = 'none';
	} 
	else if(!frm)
	{
		document.getElementById('digital_display').style.display = 'none';
		document.getElementById('quantity_display').style.display = 'block';
		//document.getElementById('shipping_display').style.display = 'block';
	}
}


function EmailCheck()
{
var shopper_email = document.forgetPass.email;
var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;

if(shopper_email.value == "") 
{
	alert("Please enter the Email Address");
	shopper_email.focus()
	return false;
}

if(!shopper_email.value.match(emailExp))
{
	alert("Please enter the valid Email Address");
	shopper_email.focus()
	return false;
}

return true;	
}


function VendorCheck()
{
	var vendor_name = document.vendor_login.u_name;
	var vendor_password = document.vendor_login.u_password;

	if(trimSpaces(vendor_name.value) == "")
	{
		alert("Please enter the User Name");
		vendor_name.focus();
		return false;
	}
	if(trimSpaces(vendor_password.value) == "")
	{
		alert("Please enter the Password");
		vendor_password.focus();
		return false;
	}
	return true;
}

function openTerms()
{
	window.open("../html/vendor_terms.html","terms","width=600,height=400,scrollbars=yes,resizeable=yes");
}


function checkURL(url)
{
	
	var arr = new Array(
	'.com','.net','.org','.biz','.coop','.info','.museum','.name',
	'.pro','.edu','.gov','.int','.mil','.ac','.ad','.ae','.af','.ag',
	'.ai','.al','.am','.an','.ao','.aq','.ar','.as','.at','.au','.aw',
	'.az','.ba','.bb','.bd','.be','.bf','.bg','.bh','.bi','.bj','.bm',
	'.bn','.bo','.br','.bs','.bt','.bv','.bw','.by','.bz','.ca','.cat','.cc',
	'.cd','.cf','.cg','.ch','.ci','.ck','.cl','.cm','.cn','.co','.cr',
	'.cu','.cv','.cx','.cy','.cz','.de','.dj','.dk','.dm','.do','.dz',
	'.ec','.ee','.eg','.eh','.er','.es','.et','.fi','.fj','.fk','.fm',
	'.fo','.fr','.ga','.gd','.ge','.gf','.gg','.gh','.gi','.gl','.gm',
	'.gn','.gp','.gq','.gr','.gs','.gt','.gu','.gv','.gy','.hk','.hm',
	'.hn','.hr','.ht','.hu','.id','.ie','.il','.im','.in','.io','.iq',
	'.ir','.is','.it','.je','.jm','.jo','.jp','.ke','.kg','.kh','.ki',
	'.km','.kn','.kp','.kr','.kw','.ky','.kz','.la','.lb','.lc','.li',
	'.lk','.lr','.ls','.lt','.lu','.lv','.ly','.ma','.mc','.md','.mg',
	'.mh','.mk','.ml','.mm','.mn','.mo','.mp','.mq','.mr','.ms','.mt',
	'.mu','.mv','.mw','.mx','.my','.mz','.na','.nc','.ne','.nf','.ng',
	'.ni','.nl','.no','.np','.nr','.nu','.nz','.om','.pa','.pe','.pf',
	'.pg','.ph','.pk','.pl','.pm','.pn','.pr','.ps','.pt','.pw','.py',
	'.qa','.re','.ro','.rw','.ru','.sa','.sb','.sc','.sd','.se','.sg',
	'.sh','.si','.sj','.sk','.sl','.sm','.sn','.so','.sr','.st','.sv',
	'.sy','.sz','.tc','.td','.tf','.tg','.th','.tj','.tk','.tm','.tn',
	'.to','.tp','.tr','.tt','.tv','.tw','.tz','.ua','.ug','.uk','.um',
	'.us','.uy','.uz','.va','.vc','.ve','.vg','.vi','.vn','.vu','.ws',
	'.wf','.ye','.yt','.yu','.za','.zm','.zw');

	var mai = url;
	var val = true;
	var strPos = mai.substring(0,7);
	if (strPos!="http://" && strPos!="https://") 
		return false;
	else {
		var maiWithoutProto = mai.substring(mai.indexOf("//")+2);
		var mai = maiWithoutProto.substring(0,maiWithoutProto.indexOf("/"));

		if (mai == '') {
			var dot = maiWithoutProto.lastIndexOf(".");
			var dname = maiWithoutProto.substring(0,dot);
			var ext = maiWithoutProto.substring(dot,maiWithoutProto.length);
		} else {
			var dot = mai.lastIndexOf(".");
			var dname = mai.substring(0,dot);
			var ext = mai.substring(dot,mai.length);
		}


		if(dot>2 && dot<57)
		{
			for(var i=0; i<arr.length; i++)
			{
				if(ext == arr[i])
				{
					val = true;
					break;
				}
				else
				{
					val = false;
				}
			}

			if(val == false)
				return false;
			else
			{
				for(var j=0; j<dname.length; j++)
				{
					var dh = dname.charAt(j);
					var hh = dh.charCodeAt(0);
					if((hh > 47 && hh<59) || (hh > 64 && hh<91) || (hh > 96 && hh<123) || hh==45 || hh==46 || hh==47)
					{
						if((j==0 || j==dname.length-1) && hh == 45)
							return false;
					}
					else 
						return false;
				}
			}
		}
		else
			return false;
	}
	return true;
}

function askConfirmation()
{
	if(confirm("Are you sure to delete this product?"))
		return true;
	else
		return false;		
}

function clearDownload()
{
	document.orders.download_order.value="";
	document.orders.pagego.value="1";
	return true;
}

function clearDlods()
{
	document.orders.download_order.value="";
	document.orders.search_sel.value="1";
	WriteCookie("order_ids","0",null,null,"/");	
	WriteCookie("order_all","0",null,null,"/");	
	return true;
}


function populateStore()
{
	document.getElementById("st_name").innerHTML = document.getElementById("user_name").value;
}


function buyerLogin()
{
	document.getElementById('homeLoginTabsOn').id = 'homeLoginTabsOff'; 
	document.getElementById('homeLoginTabsOff').id = 'homeLoginTabsOn'; 
	document.getElementById('homeLoginContent').style.display='block'; 
	document.getElementById('homeLoginContent1').style.display='none';	
}

function sellerLogin()
{
	document.getElementById('homeLoginTabsOff').id = 'homeLoginTabsOn'; 
	document.getElementById('homeLoginTabsOn').id = 'homeLoginTabsOff';  
	document.getElementById('homeLoginContent1').style.display='block'; 
	document.getElementById('homeLoginContent').style.display='none';
}

function changeContent(id)
{
	var content = "";
	var ulcontent = "";

	ulcontent = '<ul class="gradient_navigations">';
	if(id==1)
	{
		content = '<img src="images/TT_HomeSlide_1.png" />';
		ulcontent += '<li class="create_product"><a href="#" onclick="return changeContent(1);">1. Create Product</a></li> <li class="button2"><a href="#" onclick="return changeContent(2);">2. Twiscount</a></li><li class="button3"><a href="#" onclick="return changeContent(3);">3. Share & Sell</a></li>';
	}
	else if(id==2)
	{
		content = '<img src="images/TT_HomeSlide_2.png" />';
		ulcontent += '<li class="button1"><a href="#" onclick="return changeContent(1);">1. Create Product</a></li> <li class="twiscount"><a href="#" onclick="return changeContent(2);">2. Twiscount</a></li><li class="button3"><a href="#" onclick="return changeContent(3);">3. Share & Sell</a></li>';
	}
	else
	{
		content = '<img src="images/TT_HomeSlide_3.png" />';
		ulcontent += '<li class="button1"><a href="#" onclick="return changeContent(1);">1. Create Product</a></li> <li class="button2"><a href="#" onclick="return changeContent(2);">2. Twiscount</a></li><li class="share_sell"><a href="#" onclick="return changeContent(3);">3. Share & Sell</a></li>';
	}
	ulcontent += '</ul>';
	
	document.getElementById("content_tab").innerHTML = content+ulcontent;

	return false;
}