function pss_search_form(i,ii){
   var theForm = document.getElementById(ii);
   if(!theForm.value){
      if(i==2){
         theForm.className = 'search_2';
      }else{
         theForm.className = 'search_1';
      }
   }else{
      theForm.className = 'search_2';
   }
}

function pss_submit_form(i){
   document.getElementById(i).submit();
}

function pss_goURL(i){
   location.href = i;
}

function pss_formLogin(type,theDefault,theId,nameCSS1,nameCSS2){
   var theInput = document.getElementById(theId);
   if(theInput.value){
      if(theInput.value==theDefault){
         if(type=="1"){
            theInput.value = "";
            theInput.className = nameCSS1;
         }else{
            theInput.value = theDefault;
            theInput.className = nameCSS2;
         }
      }
   }else{
      theInput.value = theDefault;
      theInput.className = nameCSS2;
   }
}

function pss_home_promo(i,ii,iii,iv){
   var theDiv = document.getElementById(i);
   theDiv.style.background = "transparent url('"+ii+"') 0 0 no-repeat";
   document.getElementById('href1').innerHTML = "<div style=\"position: absolute; height: 340px; width: 500px; z-index: 1005;\" onclick='pss_goURL(\"/promo/view/"+iii+"/"+iv+".html\");' class=\"cursor_1\">";
   document.getElementById('href2').innerHTML = "</div>";
}

function BlinkTxt() {
   if(document.getElementById && document.all){
      obj = document.getElementsByTagName("blink");
      for(var i=0; i<obj.length; i++)
         if(obj[i].style.visibility=="hidden") {
            obj[i].style.visibility="visible";
         }else{
            obj[i].style.visibility="hidden";
         }
      setTimeout('BlinkTxt()',750);
   }
}

function pancadewa(){}
