EnterVar29=convertHardCode("&#1576;&#1575; &#1575;&#1606;&#1578;&#1582;&#1575;&#1576; &#1575;&#1610;&#1606; &#1711;&#1586;&#1610;&#1606;&#1607; &#1548;  &#1589;&#1601;&#1581;&#1607; &#1605;&#1608;&#1585;&#1583; &#1606;&#1592;&#1585; &#1588;&#1605;&#1575; &#1575;&#1586; &#1587;&#1610;&#1587;&#1578;&#1605; &#1581;&#1584;&#1601; &#1582;&#1608;&#1575;&#1607;&#1583; &#1588;&#1583;. &#1570;&#1610;&#1575; &#1605;&#1575;&#1610;&#1604; &#1576;&#1607; &#1575;&#1583;&#1575;&#1605;&#1607; &#1593;&#1605;&#1604;&#1610;&#1575;&#1578; &#1605;&#1609;&#8204;&#1576;&#1575;&#1588;&#1610;&#1583;&#1567;");
EnterVar30=convertHardCode("&#1576;&#1575; &#1575;&#1606;&#1578;&#1582;&#1575;&#1576; &#1575;&#1610;&#1606; &#1711;&#1586;&#1610;&#1606;&#1607; &#1548;  &#1662;&#1575;&#1585;&#1575;&#1711;&#1585;&#1575;&#1601; &#1605;&#1608;&#1585;&#1583; &#1606;&#1592;&#1585; &#1588;&#1605;&#1575; &#1575;&#1586; &#1587;&#1610;&#1587;&#1578;&#1605; &#1581;&#1584;&#1601; &#1582;&#1608;&#1575;&#1607;&#1583; &#1588;&#1583;. &#1570;&#1610;&#1575; &#1605;&#1575;&#1610;&#1604; &#1576;&#1607; &#1575;&#1583;&#1575;&#1605;&#1607; &#1593;&#1605;&#1604;&#1610;&#1575;&#1578; &#1605;&#1609;&#8204;&#1576;&#1575;&#1588;&#1610;&#1583;&#1567;");
EnterVar31=convertHardCode("&#1576;&#1575; &#1575;&#1606;&#1578;&#1582;&#1575;&#1576; &#1575;&#1610;&#1606; &#1711;&#1586;&#1610;&#1606;&#1607; &#1548;   &#1593;&#1606;&#1608;&#1575;&#1606; &#1605;&#1608;&#1585;&#1583; &#1606;&#1592;&#1585; &#1588;&#1605;&#1575; &#1575;&#1586; &#1587;&#1610;&#1587;&#1578;&#1605; &#1581;&#1584;&#1601; &#1582;&#1608;&#1575;&#1607;&#1583; &#1588;&#1583;. &#1570;&#1610;&#1575; &#1605;&#1575;&#1610;&#1604; &#1576;&#1607; &#1575;&#1583;&#1575;&#1605;&#1607; &#1593;&#1605;&#1604;&#1610;&#1575;&#1578; &#1605;&#1609;&#8204;&#1576;&#1575;&#1588;&#1610;&#1583;&#1567;");
//------------------------------
function mClk(src) {
  if (event.srcElement.tagName=='td') {
     src.children.tags('A')[0].click();
    }
}
//------------------------------
function check_paragraph_delete(id) {	
	if (confirm(EnterVar30)) {
		window.location='/companies/do_paragraph_remove.php?id='+id;
	}		
}
//------------------------------
function check_title_delete(id) {	
	if (confirm(EnterVar31)) {
		window.location='/companies/do_paragraph_remove.php?id='+id;
	}		
}
//------------------------------
function showImage(url , width , height) {
	var image_win=window.open(url ,"ShowImage" ,"width="+width+",height="+height+",status=0,resizable=0");
	image_win.focus();		
}
//------------------------------
function doSearch() {
	if ((document.search_form.company_name.value == "" || document.search_form.company_name.value == null || isblank(document.search_form.company_name.value)) && (document.search_form.company_keywords.value == "" || document.search_form.company_keywords.value == null || isblank(document.search_form.company_keywords.value))) {
        alert(convertHardCode(".&#1604;&#1591;&#1601;&#1575; &#1576;&#1585;&#1575;&#1609; &#1580;&#1587;&#1578;&#1580;&#1608; &#1581;&#1583;&#1575;&#1602;&#1604; &#1610;&#1705; &#1605;&#1608;&#1585;&#1583; &#1585;&#1575; &#1608;&#1575;&#1585;&#1583; &#1606;&#1605;&#1575;&#1610;&#1610;&#1583;"));
        return false;
	}
	document.search_form.act.value="submit";		
	document.search_form.submit();
}
//------------------------------
function createProduct() {
	EnterVar=convertHardCode('.&#1604;&#1591;&#1601;&#1575;&#1611; &#1593;&#1606;&#1608;&#1575;&#1606; &#1585;&#1575; &#1608;&#1575;&#1585;&#1583; &#1606;&#1605;&#1575;&#1740;&#1740;&#1583;');
	if(document.product_form.title.value == '' || document.product_form.title.value == null || isblank(document.product_form.title.value)){
        alert(EnterVar);
        return false;
    }
	document.product_form.flag.value='create';
	document.product_form.submit();
}
//------------------------------
function modifyProduct() {
	EnterVar=convertHardCode('.&#1604;&#1591;&#1601;&#1575;&#1611; &#1593;&#1606;&#1608;&#1575;&#1606; &#1585;&#1575; &#1608;&#1575;&#1585;&#1583; &#1606;&#1605;&#1575;&#1740;&#1740;&#1583;');
	if(document.product_form.title.value == '' || document.product_form.title.value == null || isblank(document.product_form.title.value)){
        alert(EnterVar);
        return false;
    }
	document.product_form.flag.value='modify';
	document.product_form.submit();
}
//------------------------------
function deleteProduct(id) {
	EnterVar=convertHardCode('&#1570;&#1740;&#1575; &#1605;&#1575;&#1740;&#1604; &#1576;&#1607; &#1581;&#1584;&#1601; &#1575;&#1740;&#1606; &#1605;&#1581;&#1589;&#1608;&#1604; &#1605;&#1740;&#8204;&#1576;&#1575;&#1588;&#1740;&#1583;&#1567;');
	if (confirm(EnterVar)) {
		document.product_form.flag.value='delete';
		document.product_form.id.value=id;
		document.product_form.submit();
	}
}
//------------------------------
function activateProduct(id) {
	EnterVar=convertHardCode('&#1570;&#1740;&#1575; &#1605;&#1575;&#1740;&#1604; &#1576;&#1607; &#1601;&#1593;&#1575;&#1604; &#1705;&#1585;&#1583;&#1606; &#1575;&#1740;&#1606; &#1605;&#1581;&#1589;&#1608;&#1604; &#1605;&#1740;&#8204;&#1576;&#1575;&#1588;&#1740;&#1583;&#1567;');
	if (confirm(EnterVar)) {
		document.product_form.flag.value='status';
		document.product_form.id.value=id;
		document.product_form.submit();
	}
}
//------------------------------
function deactivateProduct(id) {
	EnterVar=convertHardCode('&#1570;&#1740;&#1575; &#1605;&#1575;&#1740;&#1604; &#1576;&#1607; &#1594;&#1740;&#1585;&#1601;&#1593;&#1575;&#1604; &#1705;&#1585;&#1583;&#1606; &#1575;&#1740;&#1606; &#1605;&#1581;&#1589;&#1608;&#1604; &#1605;&#1740;&#8204;&#1576;&#1575;&#1588;&#1740;&#1583;&#1567;');
	if (confirm(EnterVar)) {
		document.product_form.flag.value='status';
		document.product_form.id.value=id;
		document.product_form.submit();
	}
}
//------------------------------
