// JavaScript Document
function show(ele) {
    var srcElement = document.getElementById(ele);
    if(srcElement != null) {
       srcElement.style.display='block';
    }
    return false;
 } 
 
function hide(ele) {
    var srcElement = document.getElementById(ele);
    if(srcElement != null) {
    if(srcElement.style.display == "block") {
       srcElement.style.display= 'none';
    }
   return false;
  }
 } 
 
 function ShowTB(obj,id1){
 txt=obj.options[obj.selectedIndex].text;
 document.getElementById(id1).style.visibility='hidden';
 if (txt.match('Other')){
  document.getElementById(id1).style.visibility='visible';
 }
}
 
/*  function hideandshow(ele) {
    var srcElement = document.getElementById(ele);
    if(srcElement != null) {
    if(srcElement.style.display == "block") {
       srcElement.style.display= 'none';
    }
    else {
       srcElement.style.display='block';
    }
    return false;
  }
 } */

 function clear_textbox(ele)
	{
	//if (document.text_form.u_input.value == " Enter Your Search Here ")
	//document.text_form.u_input.value = "";
	var srcElement = document.getElementById(ele);
	if(srcElement != null) {
	  srcElement.value= '';
	 }
	} 

function go_Shopping(){
/*
  This function generates the proper query and enters the shop
  qntty is the number of products the customer wants to purchase
  shopstring is the query to enter the webshop
*/
  var qntty = document.getElementById('qty').value;
 var shopstring = "http://www.mijnwinkel.nl/shop763000/1-click-checkout/?product=1&quantity=";
 shopstring += qntty;  
  shopstring += "&_lang=en";
window.open(shopstring);
} 

