

function moveproducts(pname)
{
if (pname=='RFID')
{
document.getElementById('tabmarquee').innerHTML="<marquee height='150' width='490' id='tabletdnews0' onMouseOut=tabletdnews0.start() onMouseOver=tabletdnews0.stop() scrollamount=3>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=10_17&products_id=60'>"+"<img src='../manu_botton/RFID_01_final.gif' width='185' height='150' border='0'>" +"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=10_17&products_id=58'>"+"<img src='../manu_botton/RFID_02_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=10_11&products_id=9'>"+"<img src='../manu_botton/RFID_03_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=10_12&products_id=65'>"+"<img src='../manu_botton/RFID_04_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=10_12&products_id=68'>"+"<img src='../manu_botton/RFID_05_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=10_24&products_id=52'>"+"<img src='../manu_botton/RFID_06_final.gif' width='185' height='150' border='0'>"+"</a>";
}
if (pname=='embadded')
{ 
document.getElementById('tabmarquee').innerHTML="<marquee height='150' width='490' id='tabletdnews0' onMouseOut=tabletdnews0.start() onMouseOver=tabletdnews0.stop() scrollamount=3>"+

"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=18_35_36&products_id=151'>" + "<img src='../manu_botton/Embedded_02_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=18_1&products_id=7'>" + "<img src='../manu_botton/Embedded_03_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&products_id=109'>"+"<img src='../manu_botton/Embedded_04_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=18_9_32&products_id=111'>"+"<img src='../manu_botton/Embedded_05_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=18_9_31&products_id=105'>"+"<img src='../manu_botton/Embedded_06_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=18_9_31&products_id=119'>"+"<img src='../manu_botton/Embedded_07_final.gif' width='185' height='150' border='0'>"+"</a>";
}
if (pname=='test')
{
document.getElementById('tabmarquee').innerHTML="<marquee height='150' width='490' id='tabletdnews0' onMouseOut=tabletdnews0.start() onMouseOver=tabletdnews0.stop() scrollamount=3>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=19_6&products_id=80'>"+"<img src='../manu_botton/Test_01_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=19_6&products_id=81'>"+"<img src='../manu_botton/Test_02_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=19_6&products_id=153'>"+"<img src='../manu_botton/Test_p03_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=19_25&products_id=71'>"+"<img src='../manu_botton/Test_03_final.gif' width='185' height='150' border='0'>"+"</a>"+"<img src='manu_botton/spacer.gif' width='6'>"+
"<a class='tradmark1' href='http://rorixwell.com/ro-estore/index.php?main_page=product_info&cPath=19_25&products_id=69'>"+"<img src='../manu_botton/Test_04_final.gif' width='185' height='150' border='0'>"+"</a>";
}
if (pname=='na')
{
document.getElementById('tabmarquee').innerHTML="<marquee height='150' width='490' id='tabletdnews0' onMouseOut=tabletdnews0.start() onMouseOver=tabletdnews0.stop() scrollamount=3>"+' ';
}
}

function check_textfile(obf)
{
var dis = obf.value;
var regl=/\.(htm[l]?)/;
var theflag=regl.test(dis);
   if (theflag)
    {
      return theflag;
    }else{
      alert("we just support html file type\n your file: \n"+obf.value+"\n is not valid" );
      obf.focus();
      return theflag;
    }
}


function emailcheck(obf)
{
var dis = obf.value;
var regl=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/;

var theflag=regl.test(dis);
   if (theflag)
    {
      return theflag;
    }else{
      alert("your email address is invalid!" );
      obf.focus();
      return theflag;
    }
}

function check_imagefile(obf)
{
var dis = obf.value;
var regl=/\.((gif)|(jpg))/i;
var theflag=regl.test(dis);
   if (theflag)
    {
      return theflag;
    }else{
      alert("we just support gif/jpg image file type\n your file: "+obf.value +" not valid" );
      obf.focus();
      return theflag;
    }
}

function disp_upload()
{
var tech = document.getElementById('uploadimage');
        tech.style.display = "block";
}

function nodisp_upload()
{
var tech = document.getElementById('uploadimage');
        tech.style.display = "none";
}


function disp_news_upload()
{
var newsevents = document.getElementById('uploadnews');
        newsevents.style.display = "block";
var newsevents1 = document.getElementById('newscontent');
        newsevents1.style.display = "none";
var newsevents2 = document.getElementById('newscontent1');
        newsevents2.style.display = "none";
var tech = document.getElementById('uploadimage');
        tech.style.display = "none";
}

function nodisp_news_upload()
{
var newsevents = document.getElementById('uploadnews');
        newsevents.style.display = "none";
var newsevents1 = document.getElementById('newscontent');
        newsevents1.style.display = "block";
var newsevents2 = document.getElementById('newscontent1');
        newsevents2.style.display = "block";
}

function des_display(tt)
{
 
 if (tt == 'technical'){
        var tech = document.getElementById('technicalll');
        tech.style.display = "block";
	var tech0 = document.getElementById('newschoice0');
	tech0.style.display = "none";
	var tech1 = document.getElementById('newschoice1');
	tech1.style.display = "none";
	var w = document.getElementById('content');
 	 var wy = w.getElementsByTagName("td").item(0);
 	 var wz = w.getElementsByTagName("td").item(1);
 	 wy.style.display = "none";
 	 wz.style.display = "none";
	var w = document.getElementById('filename');
 	 var wy = w.getElementsByTagName("td").item(0);
 	 var wz = w.getElementsByTagName("td").item(1);
 	 wy.style.display = "none";
 	 wz.style.display = "none";
 }
 if (tt == "news"){
   	var tech = document.getElementById('technicalll');
        tech.style.display = "none";
	var tech0 = document.getElementById('newschoice0');
	tech0.style.display = "inline";
	var tech1 = document.getElementById('newschoice1');
	tech1.style.display = "inline";
 }

}

function file_display(textid)
{

 if (textid == "content"){

 var x = document.getElementById(textid);
 var y = x.getElementsByTagName("td").item(0);
 var z = x.getElementsByTagName("td").item(1);
 y.style.display = "inline";
 z.style.display = "inline";
  var w = document.getElementById('filename');
  var wy = w.getElementsByTagName("td").item(0);
  var wz = w.getElementsByTagName("td").item(1);
  wy.style.display = "none";
  wz.style.display = "none";

 }else{

 var x = document.getElementById(textid);
 var y = x.getElementsByTagName("td").item(0);
 var z = x.getElementsByTagName("td").item(1);
 y.style.display = "inline";
 z.style.display = "inline";
  var w = document.getElementById('content');
  var wy = w.getElementsByTagName("td").item(0);
  var wz = w.getElementsByTagName("td").item(1);
  wy.style.display = "none";
  wz.style.display = "none";
 }
}